onError behaving differently between browsers
问题 I'm trying to get the onError event to work but so far it only works in Internet Explorer 9. I have tried several codes but basically it comes down to this: <img class="a_toc_image" src="' + asap.imgurl + '" onError="this.src=\'images/no_image.png\';" /> Internet Explorer 9: Success: Gets an image from our database Fail : Displays no_image.png Chrome 20.0.11: Success: Gets an image from our database Fail : Just whitespace Firefox 14.0.1: Success: Gets an image from our database Fail : Broken