SitePoint Sponsor |
|
User Tag List
Results 1 to 2 of 2
Thread: mulitple onloads
-
Feb 25, 2001, 14:42 #1
I have two scripts that require body onload. How do I do this?
Free Science Homework Help
http://www.physicsforums.com
-
Feb 25, 2001, 18:15 #2
- Join Date
- Jul 2000
- Location
- 80,000 feet below the surface
- Posts
- 1,442
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Say you have two onLoad functions, function1 and function2.
The code would look like :
<body onload="function1();function2()" blah blah blah>
Separate multiple functions with a semi-colon, and make sure you've removed other 'onload' calls from within each script to ensure it works.
Bookmarks