Browse DevX
Sign up for e-mail newsletters from DevX

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



Building the Right Environment to Support AI, Machine Learning and Deep Learning

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.



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