IE security Warning Against Running Scripts or ActiveX controls

When we run some web page there is a popup with the warning "To help protect your security Internet explorer has restricted this webpage from running
scripts or ActiveX controls that could access your computer.Click here for options...."

Why do we get such a warning?

This happens when IE has no idea about the security restrictions of the web page's host. For example, when we try to load this page from our hard disk, the error may pop up.

We can remove the error and can view the flash animations correctly.
For that you have use the one code that is

Add the following sample code in a <script>

<!-- saved from url=(0014)about:internet -->

The above example is called Mark of the Web. This is a special tag, in the form of a comment, that tells Internet Explorer (of at least version 4.0) about the security zone of the page. Generally, "about:internet" is used in the absence of a particular domain.



Author: Koshish12 Aug 2008 Member Level: Bronze   Points : 1

This script code is really good.
is there any way in javascript to show any custom message in this kind of popup.
Like "Download this file" when user clicks on this link on popup then that file should be downloaded

Author: Kadirvelu SivaKumar06 Dec 2008 Member Level: Bronze   Points : 1

Thanks for this code. I always get this error message when I try to open up the flash file. I will use it hereafter.

Author: Suresh T30 Mar 2010 Member Level: Bronze   Points : 1

Thank u so much. I was behind this with lots of search and trial. It really saved me. I had .mht files in which the javascript should disable copy/paste functionality, which got blocked. Thanks a lot.

  • Do not include your name, "with regards" etc in the comment. Write detailed comment, relevant to the topic.
  • No HTML formatting and links to other web sites are allowed.
  • This is a strictly moderated site. Absolutely no spam allowed.
  • Name: