Return to Snippet

Revision: 63803
at June 7, 2013 20:35 by eliphas


Initial Code
<img src="myimagenotfind" onError="remove_el(this);" >

function remove_el(image) {
    image.onerror = "";
    image.src = "/images/noimage.gif";
    return true;
}

Initial URL


Initial Description
script that allow you to replace an image if that one doesn't exist

Initial Title
Javascript No image

Initial Tags


Initial Language
JavaScript