A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
difference between body onLoad and window.onload
Joined: Jan 30, 2009
Apr 08, 2009 07:56:13
Please tell me this :
Is there any difference between body onLoad and window.onload
Thanks in advance.
If you want something you never had do something which you had never done
Joined: Nov 08, 2001
Apr 08, 2009 08:26:20
They both do the same thing. Having onload in the body tag is obtrusive and is normally frowned upon by seasoned developers.
I agree. Here's the link:
subject: difference between body onLoad and window.onload
Validating in Struts
Javas cript onLoad() function
Alternative to on Load method in BODY Tag
Loading data when the application first load
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015