I am trying to append an image to a page using JavaScript:
image = document.createElement(\'img\'); image.onload = function(){ document.body.appendChild(
Here is my solution. If I've 404 for my image - I try to insert one of my array that is 200 OK (Pure Javascript). Images must be in same path. Otherwise - my func will return 'no-image.png'. jQuery/JavaScript to replace broken images