d
Amit DhamuSoftware Engineer
 

Placeholder Image if Src Unavailable

1 minute read 00000 views

Show a placeholder image if the one you intend to load is unavailable.

<img src="my-image.png" onerror="this.src='placeholder-image.png'" />