html img onerror code example
Example 1: oneerror javascript image
<img src="imagenotfound.gif" alt="Image not found" onerror="this.onerror=null;this.src='imagefound.gif';" />
Example 2: html img onerror this.src
<img src="logo1.jpg" onerror="this.src='error.jpg';" class="posting-logo-img">