Mega Code Archive

 
Categories / JavaScript Tutorial / HTML Tags
 

Image load onerror event (IE)

< html>     <head>         <title>Image Error Test</title>     </head>     <body>         <P>The image below attempts to load a file that doesn't exist.</p>         <img src="doesNotExist.gif" onerror="alert('An error occurred loading the image.')" />     </body> </html>