1.

What Is Difference Between Document.ready() And Onload() ?

Answer»

document.ready() FUNCTION can be inlcuded multiple times whereas onload() method can be called only once in a page.

document.ready() is called as soon as DOM is LOADED while onload is called when everything is loaded on page i.e. IMAGES, DOM and other resources associated with the page.

document.ready() function can be inlcuded multiple times whereas onload() method can be called only once in a page.

document.ready() is called as soon as DOM is loaded while onload is called when everything is loaded on page i.e. images, DOM and other resources associated with the page.



Discussion

No Comment Found