Document.ready() function is completely different from body onload() function .
First of all Document.ready() function is called as soon as DOM is loaded but body.onload() function is called when everything gets loaded on the page that includes DOM, images and all associated resources of the page.
We can have as many document.ready() functions in a page but onload function is limited on one time.
Liked By
Write Answer
Does document.ready() function similar to onload()?
Join MindStick Community
You have need login or register for voting of answers or question.
Anonymous User
17-Oct-2011Document.ready() function is completely different from body onload() function .