HTML tutorial
CSS3 tutorial
Bootstrap tutorial
JavaScript tutorial
JQuery tutorial
AngularJS tutorial
React tutorial
NodeJS tutorial
PHP tutorial
Python tutorial
Python3 tutorial
Django tutorial
Linux tutorial
Docker tutorial
Ruby tutorial
Java tutorial
C tutorial
C ++ tutorial
Perl tutorial
JSP tutorial
Lua tutorial
Scala tutorial
Go tutorial
ASP.NET tutorial
C # tutorial
jQuery Event Methods : Alert a text when an image is fully loaded
Use .on("load", handler)
instead of .load(handler)
and .trigger("load")
instead of .load()
.
The load() method attaches an event handler to the load event.
The load event occurs when a specified element has been loaded.
This event works with elements associated with a URL (image, script, frame, iframe), and the window object.
Depending on the browser, the load event may not trigger if the image is cached (Firefox and IE).
Parameter | Description |
---|---|
function | Required. Specifies the function to run when the specified element is done loading |