How can I associate two javaScript functions or methods with onClick event in ASP.NET ?

How can I associate two javaScript functions or methods with onClick event in ASP.NET ?
like this:
OnClick="func()"
How can I associate another one?
mazin_kfAsked:
Who is Participating?
 
David H.H.LeeCommented:
Dear mazin_kf,
It depend how you control the javascript logic. Basically, you can code something like this:
eg:
OnClick="func();function2();"

or,
pass any extra parameters to call another function associated with first invoked function.
eg:
OnClick="func(1)"

function func(){
 if(arguments[0]=='1')
   function2();
}
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.