We can call multiple functions on a single event such as onclick,onsubmit etc by seperating with semicolon sign ;....like this
<a href="..." onclick="fun1();fun2();">
Alert: -1.Make sure the first function not submit the form otherwise second function will not execute and
2. same thing happens when first function have explicit return statement that time also second function may not execute.
<a href="..." onclick="fun1();fun2();">
Alert: -1.Make sure the first function not submit the form otherwise second function will not execute and
2. same thing happens when first function have explicit return statement that time also second function may not execute.
No comments:
Post a Comment