dcsimg
Can I call multiple functions with one onclick event?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   cypress_phill
Posted On:   Friday, April 27, 2001 12:43 AM

When you use an onclick or mouseover event and you want to do several things at the same time, how can you do that.
Can i use multiple functions in one event?
Thanx

Re: Can I call multiple functions with one onclick event?

Posted By:   Christopher_Cooper  
Posted On:   Friday, May 4, 2001 11:35 AM

I use two different ways of accomplishing what you are talking about.


One way is to have the event call a seperate function, and then have that function call however many other functions you want.



A second way is to place the function calls inside of the event quotes deliminated with a ';' i.e.
   onClick="function_1(); function_2(); function_whatever();"

This has worked with all of the on... type events I have used.



hope this helps.

About | Sitemap | Contact