Kak Irudini

Catatan Belajar, Kuliah, Kerja, dll.

2022/01/25

How to show Alternate Image if source image is not found

Posted by Kak Irudini on 2022/01/25 8:02 PM in howto, JavaScript

IRUDINI.ID -

<img src="imagenotfound.gif" alt="Image not found" onerror="this.onerror=null;this.src='imagefound.gif';" />

Reference:
https://stackoverflow.com/questions/3984287/how-to-show-alternate-image-if-source-image-is-not-found-onerror-working-in-ie


Title: How to show Alternate Image if source image is not found

Link: https://karudi.blogspot.com/2022/01/how-to-show-alternate-image-if-source-image-is-not-found.html


Hashtag : ,


Ka Rudi

IMAM RUDINI (Rudi)
Tax and Accounting

"do u have a job for me? please hire me"