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

Popular posts from this blog

Ansible - ERROR! the field 'hosts' is required but was not set -

customize file_field button ruby on rails -

SoapUI on windows 10 - high DPI/4K scaling issue -