Image load onerror event (IE) : img : HTML Tags JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » HTML Tags » img »

 

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>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo HTML Tags
» img