The load () method is used to load a specific element. It attaches an event handler to load event. It was deprecated in jQuery 1.8 version of jQuery library.
The load event occurs when a specific element is loaded. It is generally used with a URL (image, script, frame, iframe), and the window object.
Note: On some browsers, the load event did not trigger if the image is cached.
It adds a function to the load event.
Parameters of jQuery load() event
Example of jQuery load() event
Let's take an example to demonstrate jQuery load() event.Test it Now
JavaTpoint offers too many high quality services. Mail us on h[email protected], to get more information about given services.
JavaTpoint offers college campus training on Core Java, Advance Java, .Net, Android, Hadoop, PHP, Web Technology and Python. Please mail your requirement at [email protected].
Duration: 1 week to 2 week