Difference between window.onload document.onload

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • amit074
    New Member
    • Jul 2007
    • 1

    Difference between window.onload document.onload

    What is difference between document.onload and window.onload
    is document.onload is same as body onload function


    Thanks
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    window.onload is correct. See this link for the onload event. It is supported by the window and image objects.

    Comment

    Working...