Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

how to do that if src is invalid it wont show error

<img src="http://example.com/non-existent-image.jpg" onerror="this.onerror=null;this.src='http://example.com/existent-image.jpg';" />
Source by blog.imagekit.io #
 
PREVIOUS NEXT
Tagged: #src #invalid #wont #show #error
ADD COMMENT
Topic
Name
4+4 =