Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

jquery image onerror not working

function imgError(image) {
    image.onerror = "";
    image.src = "/images/noimage.gif";
    return true;
}
<img src="image.png" onerror="imgError(this);"/>

Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #jquery #image #onerror #working
ADD COMMENT
Topic
Name
6+4 =