0

I am trying to insert following code to all my pages:

<script language="javascript">
    if (top.location == self.location)
    {
        top.location = '../index.html'
    }
</script>

When I have this page and try to run the page from IE 8 then I am being displayed a yellow bar on top of my page which asking me to allow the plugin.

No other browser (firefox/opera/chrome/safari) does this.

This is annoying to click this every time person visits page. How to disable this?

I just hope I won't have to use:

<!--[if !IE]>-->
<script language="javascript">
    if (top.location == self.location)
    {
        top.location = '../index.html'
    }
</script>
<!--<![endif]-->
N West
  • 6,768
  • 25
  • 40
HelpNeeder
  • 6,383
  • 24
  • 91
  • 155

1 Answers1

2

I think you're talking about local execution of javascript, so see the answer in this discussion about Mark of the web (MOTW): ActiveX Content in a local web page, and "the mark of the web"

see also MSDN reference for futher information:

Community
  • 1
  • 1
Fabrizio Calderan
  • 120,726
  • 26
  • 164
  • 177