Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: Web
Expertise: Beginner
Apr 12, 2000

Call More Than One Function With a Single Event Handler

It is possible to call two different functions when only a single event has occurred; for example, when the user has clicked on a particular button, or when your page initially loads. To do that, make sure to place a semicolon between the two function calls. At load time, for example, you might want to call an init() function to initialize variables, and a setHidden() function to set the visibility of certain objects. To do that, place a semicolon between the two function calls, as in:
 
<BODY onload = "init(); setHidden()">
Manoj Singh
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date