InterviewSolution
Saved Bookmarks
| 1. |
Is there any selector to filter the DOM elements based on its content? |
|
Answer» The code INSIDE window.onload event won't RUN until the browser finishes loading entire elements includes IMAGES, frames, objects etc.. but document ready RUNS as soon as the HTML document is loaded and DOM is ready. The basic structure of ready() function looks like this: $(document).ready(function() { //your code goes here });The basic structure of window.onload function looks like this: window.onload = function() { // Your code goes here }; |
|