Aatul Palandurkar

Execute multiple functions on single HTML event

Posted on: June 4, 2012

Objectives :-

* How to execute multiple functions on single HTML event?
* How to call multiple funtions on single HTML event?

Many time you may have faced this issue, you may need to call / execute multiple functions on single HTML event & you may have stucked there, stop working, changed the functionality, etc.

But now don’t worry about it anymore. Here is the Code to execute multiple functions on a single HTML event :-

<script type="text/javascript">
function Message1 ()
 alert ("Message1");
 function Message2 ()
 alert ("Message2");
<form name="NameTheForm">
<input type="Button" name="buttonName" onclick="Message1(); Message2()">

The above code will execute / call two functions on single HTML event. Here for example I have written two functions but you can write multiple functions & can call them to onclick event separated by semicolon (;) as shown above.

Posted from WordPress for Android

2 Responses to "Execute multiple functions on single HTML event"

v v helpful for learner


Comments are closed.

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 13,260 other followers




%d bloggers like this: