Javascript warning?

SpaceshipSpaceship
Watch

therise03

Established Member
Impact
0
Why is it that sometimes when your using javascript and internet explorer when you test your code or view the page in a browser, a small yellow bar goes across the top of the screen saying...

"to help protect your security, IE has restricted this file from showing active content that could access your computer. click here for options"

?????

Here is the code I am using which is a suckertree menu javascript put before the end of the </head> tag.



<script type="text/javascript">

var menuids=["treemenu1"]

function buildsubmenus_horizontal(){
for (var i=0; i<menuids.length; i++){
var ultags=document.getElementById(menuids).getElementsByTagName("ul")
for (var t=0; t<ultags.length; t++){
if (ultags[t].parentNode.parentNode.id==menuids){
ultags[t].style.top=ultags[t].parentNode.offsetHeight+"px"
ultags[t].parentNode.getElementsByTagName("a")[0].className="mainfoldericon"
}
else{
ultags[t].style.left=ultags[t-1].getElementsByTagName("a")[0].offsetWidth+"px"
ultags[t].parentNode.getElementsByTagName("a")[0].className="subfoldericon"
}
ultags[t].parentNode.onmouseover=function(){
this.getElementsByTagName("ul")[0].style.visibility="visible"
}
ultags[t].parentNode.onmouseout=function(){
this.getElementsByTagName("ul")[0].style.visibility="hidden"
}
}
}
}

if (window.addEventListener)
window.addEventListener("load", buildsubmenus_horizontal, false)
else if (window.attachEvent)
window.attachEvent("onload", buildsubmenus_horizontal)
</script>




Why is it also when looking at web pages with the same type of menu's or javascript being used, sometime IE does NOT show this error?

the mysteries of javascript and IE
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
I believe it has to do with IE not liking Javascript. There may be a bug issue there at work.
 
0
•••
IE gives me that error just by adding the jQuery library to my webpage without writing any actual JS that uses it!
 
0
•••
Appraise.net

We're social

Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
CatchDoms
DomainEasy — Zero Commission
DomDB
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back