One or more additional DOM elements, text nodes, arrays of elements and text nodes, HTML strings, or jQuery objects to insert before each element in the set of matched elements. Therefore, before modifying the page using jQuery, we must first make sure the document is "ready." In your js/ directory, create the scripts.js file and type the following code: $(document).ready(function() { // enter the jQuery here }); It is really bad practice in programming showing the end result without available of all the functions like frames, images, graphics . But then which onLoad() is executed first? Not the answer you're looking for? Example 1: This example illustrates the ready () method in jQuery. The code tries to load a website URL in an