Prev Demo
jQuery
>
.Load() - Attach Load Event To Element
Next Demo
Write code here
J
|
B
|
A
<!DOCTYPE html> <html> <head> <title>Demo</title> <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script> </head> <body> <img id="imgLoad" src="http://www.itfunda.com/Images/itfunda.gif" /> <script> $("#imgLoad").load(function () { alert("ITFunda.Com Logo loaded"); }); </script> </body> </html>
Note: We DO NOT save your trial code in our database.
Output