0

How can I check given URL is got valid image or 404 if not valid (404) or broken image using JavaScript.

It should call method if image URL contains image it should return true or if the image URL contain broken or no image it should return false

Maths RkBala
  • 2,207
  • 3
  • 18
  • 21
saren vs
  • 1
  • 2
  • 1
    Does this answer your question? [Check if image exists on server using JavaScript?](https://stackoverflow.com/questions/18837735/check-if-image-exists-on-server-using-javascript) – imvain2 Apr 04 '23 at 18:23

0 Answers0