Back
Basically, window.onload will by default fired when the whole page is loaded which will include images, scripts etc. Whereas, document.onload runs when the DOM is ready.
I hope this will help.
Want to become a Java Expert? Join Java Certification now!!
31k questions
32.8k answers
501 comments
693 users