javascript - Angularjs: onerror is not working in IE -
onerror not working in ie only, rest browser showing correctly.
here code:
<img src="<?php echo site_url(); ?>assets/uploads/{{obj.img}}" onerror="this.src='<?php echo site_url(); ?>assets/images/default_avatar.png'"/>
my understanding: here trying use onerror when images available in uploads folder script need take default image show on browser. displaying default images though images available in uploads folder. , issue ie 10 & edge. working fine in crome , firefox.
Comments
Post a Comment