Difference between onload() and document.ready()

Total Post:117

Points:821

JQuery 
 2089  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. 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

Please check, If you want to make this post sponsored

You are not a Sponsored Member. Click Here to Subscribe the Membership.