image on error code example
Example 1: on this image error
<img src="" onerror="this.onerror=null;this.src='images/someotherimage';" />
Example 2: oneerror javascript image
<img src="imagenotfound.gif" alt="Image not found" onerror="this.onerror=null;this.src='imagefound.gif';" />