How do you avoid the ActiveX popup warning in IE7 and IE8?

I am currently using javascript to incorporate CSS changes to freeze certain elements in my html page. In Firefox, I never get an ActiveX message, but in IE8 I get a message with the message "To protect your security, Internet Explorer limited this web page to running scripts or ActiveX controls that could access your computer." I accept it because of the javascript I have:

sfHover = function() { var sfEls = document.getElementById("nav").getElementsByTagName("LI"); for (var i=0; i<sfEls.length; i++) { sfEls[i].onmouseover=function() { this.className+=" sfhover"; } sfEls[i].onmouseout=function() { this.className=this.className.replace(new RegExp(" sfhover\\b"), ""); } } } if (window.attachEvent) window.attachEvent("onload", sfHover); 

Hangup effects still work in IE8 without clicking a warning button and activating ActiveX.

My questions: 1) Is there a way to change the javascript that I have for the freezing effects, so the ActiveX warning does not appear? 2) Is there any code to disable the ActiveX warning, since the website works fine in IE even with the warning?

thanks

+4
source share
3 answers

This is the default restriction when you open it with the local file system on the disk, and not with the web server. In other words, this will not happen if you change the security restrictions in the browser configuration or submit them to a (local) web server, for example http: //localhost/test.html

In Firefox, I never get an ActiveX message

ActiveX is the property of MSIE, you really will never see this in browsers other than MSIE.

+3
source

You can try this if it works:

Add this to your ASPX code.

  <!doctype html> <!-- saved from url=(0023)http://www.contoso.com/ --> 
+1
source

This only happens when working with local files, if it bothers you, check this out: http://msdn.microsoft.com/en-us/library/ms537628(VS.85).aspx

0
source

All Articles