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

Tell me what does dollar sign ($) means in jquery? : jquery mobile

808


Is jquery a framework?

794


How do you get the text value of a selected option?

750


How to submit a form without submit button using jquery?

823


What is jquery.size()? : jquery mobile

828


What is the difference between $(this) and 'this' in jquery?

6437


What is the method used to define the specific character in place of $ sign?

971


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

825


How can you disable jquery animation?

853


Why do we use jquery? : jquery mobile

808


Is jquery library used for server scripting or client scripting?

792


When can you use jquery?

836


Explain the script build up by jquery?

9324


How to multiple version of jQuery?

853


Which command will give a version of jQuery?

886