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
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