File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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.
It is sorta covered in the
JavaRanch Style Guide
subject: difference between body onLoad and window.onload
Validating in Struts
Loading data when the application first load
Alternative to on Load method in BODY Tag
Javas cript onLoad() function
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014