Can you please explain the difference between body onload() and document.ready() function?
Submitted by: MuhammadDocument.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.
Submitted by: Muhammad
► 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.
Submitted by: Muhammad
Read Online jQuery Mobile Job Interview Questions And Answers
Top jQuery Mobile Questions
☺ | How to divide a page into parts using jQuery Mobile? |
☺ | How to load a page using jQuery Mobile? |
☺ | How to control page titles in jQuery Mobile? |
☺ | Why we need jQuery Mobile? |
☺ | Explain jQuery UI? |
Top Scripting language Categories
☺ | AngularJS Interview Questions. |
☺ | Ext-JS Interview Questions. |
☺ | Dojo Interview Questions. |
☺ | Expert Developer JavaScript Interview Questions. |
☺ | jQuery Mobile Interview Questions. |