- How do you have an event handler call multiple functions/statements?
- That's simple. You just need to embed the functions inside the event handler as usual, but separate each of them using a semicolon:
<form>
<input type="button" value="Click here!" onClick="alert('Thanks for visiting my site!');
window.location='http://www.yahoo.com'">
</form>
Multiple Actions in Java Script
Subscribe to:
Post Comments
(
Atom
)
0 comments :
Post a Comment