DIFFERENCE BETWEEN ONLOAD() AND DOCUMENT.READY()

jayprakash sharma

Total Post:117

Points:821
Posted by  jayprakash sharma
JQuery 
 1712  View(s)
Ratings:
Rate this:
Hi every one,
can you tell me what are difference between onload() and document.ready() function used in jQuery?

Thanks
  1. AVADHESH PATEL

    Post:604

    Points:4228
    Re: Difference between onload() and document.ready()

    Hi Jayprakash,
    Your solution is

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

    2-we can have only one onload function.

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

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

      Modified On Mar-29-2018 05:41:53 AM

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!