Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

difference between body onLoad and window.onload

 
RaviNada Kiran
Ranch Hand
Posts: 528
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please tell me this :

Is there any difference between body onLoad and window.onload


Thanks in advance.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
They both do the same thing. Having onload in the body tag is obtrusive and is normally frowned upon by seasoned developers.

Eric
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic