Calling more than one JavaScript function in a body tag (or other) event handler
We may call more than one javascript function by seperating semi-colon as follows.
Example:
<body onload=”callFunction1();callFunction2();”>
In a mouseover, we can call as follows,
onMouseOver=”callFunction1();callFunction2();”>
In JavaScript, the semi-colon is essentially an end-of-line marker. Within reasonable limits, we can actually write a whole script inside of an event handler.
The same thing applies to the href=”javascript:etc” mce_href=”javascript:etc” structure. For instance:
<a href=”javascript:callFunction1();callFunction2();” mce_href=”javascript:callFunction1();callFunction2();”>
Click Here
</a>
