/ Published in: jQuery
                    
                                        
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
var imgsrc = 'img/image1.png';
$('<img/>').load(function () {
alert('La imagen se cargó');
}).error(function () {
alert('Error al cargar la imagen');
}).attr('src', imgsrc);
Comments
 Subscribe to comments
                    Subscribe to comments
                
                