Document.ready VS body.onload function
1 - Document.ready function is called as soon as HTML DOM is loaded, where Body.onload function is called when everything gets loaded on the page that includes HTML DOM, images and all associated resources of the page.
2 - Document.ready() function in a page can be multiple, but we can have only one body onload function.
0 Comment(s)