This week's book giveaway is in the JavaFX forum.
We're giving away four copies of Introducing JavaFX 8 Programming and have Herbert Schildt on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes difference between body onLoad and window.onload Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Introducing JavaFX 8 Programming this week in the JavaFX forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "difference between body onLoad and window.onload " Watch "difference between body onLoad and window.onload " New topic
Author

difference between body onLoad and window.onload

RaviNada Kiran
Ranch Hand

Joined: Jan 30, 2009
Posts: 528
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
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15385
    
    6
They both do the same thing. Having onload in the body tag is obtrusive and is normally frowned upon by seasoned developers.

Eric
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: difference between body onLoad and window.onload
 
It's not a secret anymore!