Replacing text with image invokes "IE has restricted this page from running scripts or ActiveX"
- by Johan
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>