Replacing text with image invokes "IE has restricted this page from running scripts or ActiveX"
Posted
by Johan
on Stack Overflow
See other posts from Stack Overflow
or by Johan
Published on 2010-06-10T09:44:48Z
Indexed on
2010/06/10
9:52 UTC
Read the original article
Hit count: 296
JavaScript
|internet-explorer
I'm making a snippet that people can add to their web sites. My problem is that it invokes the yellow "ActiveX" bar at the top in Internet explorer. I'm not sure what invokes it. This is my code:
<a id="nhl1" href="http://www.theaddress.com/">link</a>
<script type="text/javascript">
(function () { document.getElementById('nhl1').innerHTML =
'<img src="http://www.theaddress.com/banner1.jpg" alt="image 1" style="border: none;" />'; })();
</script>
© Stack Overflow or respective owner