I\'m using JavaScript with the jQuery library to manipulate image thumbnails contained in a unordered list. When the image is loaded it does one thing, when an error occurs
Using this JavaScript code you can check image is successfully loaded or not.
JavaScript
document.onready = function(e) { var imageobj = new Image(); imageobj.src = document.getElementById('img-id').src; if(!imageobj.complete){ alert(imageobj.src+" - Not Found"); } }
Try out this