Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Java by (13.1k points)
Can anyone help me with where window.onload and document.onload is used?

1 Answer

0 votes
by (26.7k points)

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!!

Related questions

0 votes
1 answer
0 votes
1 answer
asked Feb 16, 2021 in Java by dante07 (13.1k points)
0 votes
1 answer

Browse Categories

...