PDA

View Full Version : how to combine "two onLoad events"



that Dude
03-02-2005, 11:10 AM
I have to run following two online events:
<body onLoad="window.defaultStatus='bla bla'">
<body onLoad="stopHot()">

How do I do this?

Do you think the following code will work?
<body onLoad="window.defaultStatus='bla bla'; stopHot()">

Any suggestion will be appreciated. Thanks!

ddadmin
03-02-2005, 07:26 PM
Yes your solution will work. Simply separate each function with a semicolon as you've donw above.

that Dude
03-03-2005, 03:25 AM
thank you!