1.

Difference Between Onload() And Document.ready() Function Used In Jquery?

Answer»

We can add more than one document.ready() function in a page.

we can have only one onload function.

Document.ready() function is CALLED as soon as DOM is LOADED.

body.onload() function is called when everything (DOM, images)gets loaded on the page.

We can add more than one document.ready() function in a page.

we can have only one onload function.

Document.ready() function is called as soon as DOM is loaded.

body.onload() function is called when everything (DOM, images)gets loaded on the page.



Discussion

No Comment Found