Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Is there any difference between body onload() and document.ready() function?

Answer Posted / chaitanya

document.ready() function is different from body onload() function for 2 reasons.

We can have more than one document.ready() function in a page where we can have only one body onload function.

document.ready() function is called as soon as DOM is loaded where body.onload() function is called when everything gets loaded on the page that includes DOM, images and all associated resources of the page.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can jquery library be added to pages? Write a basic jquery code?

736


What is the use of serialize method in jQuery?

795


Write a basic jquery code?

812


How to use migrate jquery plugin if possible? : jquery mobile

767


How we can modify the css class in jquery?

737


What are selectors in jquery mean ?

855


How to check/uncheck an input in jquery?

816


Is jquery a w3c standard? : jquery mobile

809


Explain the difference between javascript and jquery? : jquery mobile

717


How can images be made to appear scrolling one over another?

760


What is serialize() in jquery?

730


Is it too early to discuss jquery ui 1.8?

811


Explain "beforesend(xhr)" paremeter of jquery ajax method?

663


Explain the features of jquery?

765


How we can hide a block of html code on a button click using jquery?

751