top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What is difference between window.onload and onDocumentReady?

0 votes
1,350 views
What is difference between window.onload and onDocumentReady?
posted Aug 7, 2014 by anonymous

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote

window.onload

  • Occurs after all the content (images/CSS files/JS files) have been loaded.
  • Standard event (built-in function) in the DOM

document.ready

  • Occurs as soon as the DOM is loaded.
  • Specific to JQuery
answer Aug 8, 2014 by Siddhesh Athalekar
...