I tried that but now when the alert window for function_1 is clicked, the form goes to the "action=" without any entry needing to be made in the form.
Code:
function func_3(health)
{
var val = true;
val = function_1(health);
//in case function_1 returns true, we call function_2
if(val)
{
val = function_2(health);
}
return val;
}
function
Leave a comment: