1

I'm new to javaScript. Whats the difference between window.onload and document.ready. I have used both and window.onload seems to fire a bit later than document.ready. Whats the reason?

Bicku Bala
  • 11
  • 1
  • 2

1 Answers1

3

$(document).ready: executes when HTML-Document is loaded and DOM is ready

$(window).load: executes when complete page is fully loaded, including all frames, objects and images