Click to See Complete Forum and Search --> : calling two functions from a button


CanadianGirl
07-23-2003, 08:43 PM
is there a way to call 2 functions from one button?

Jupac
07-23-2003, 09:03 PM
Yes You can

<form onSubmit=alert("Callin1")>
<input type="submit" value="Clik me" onclick=alert("callin2")>
</form>

pyro
07-23-2003, 09:07 PM
<input type="button" value="Run Functions" onclick="function1(); function2();">

CanadianGirl
07-23-2003, 09:21 PM
Thanks alot guys

pyro
07-23-2003, 09:29 PM
You bet... :)