I have a wallpaper website, where I have often found broken images. Images have permission errors like access denied or are removed from the source. So when a broken image is displayed in the browser it does not look good and brake my website design.
How can I trigger an event when an image failed to load, so I can replace the src of that image with a default image or a not found image?. Like I have a jquery “load” event. Or do I have to get all the images, filter broken images then replace the src?