1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Script blocked in IE7

Discussion in 'Internet Explorer' started by Gianni, Jun 4, 2010.

  1. Gianni

    Gianni Flightless Bird

    I am running/testing JavaScript in IE7 and I get the
    following message.

    "To help protect your security IE has restricted this
    webpage from running scripts or ActiveX controls that
    could access your computer."

    Is there some setting that I could change to not get
    the blocking? The testing works fine in Firefox.
     
  2. Dan

    Dan Flightless Bird

    "Gianni" <gianni@gianni.com> wrote in message
    news:#tHvXW#ALHA.4308@TK2MSFTNGP04.phx.gbl...
    > I am running/testing JavaScript in IE7 and I get the
    > following message.
    >
    > "To help protect your security IE has restricted this
    > webpage from running scripts or ActiveX controls that
    > could access your computer."
    >
    > Is there some setting that I could change to not get
    > the blocking? The testing works fine in Firefox.


    Are you loading the page with the script from your hard disk? This is
    expected behaviour if so, as IE will restrict script access for pages loaded
    from the My Computer security zone. You can add a "Mark of the Web" to the
    HTML so that IE will run it in the Internet security zone which will let you
    test code as if it was loaded from a website.

    http://msdn.microsoft.com/en-us/library/ms537628(VS.85).aspx

    --
    Dan
     
  3. Gianni

    Gianni Flightless Bird

    Dan wrote:
    > "Gianni" <gianni@gianni.com> wrote in message
    > news:#tHvXW#ALHA.4308@TK2MSFTNGP04.phx.gbl...
    >> I am running/testing JavaScript in IE7 and I get the
    >> following message.
    >>
    >> "To help protect your security IE has restricted this
    >> webpage from running scripts or ActiveX controls that
    >> could access your computer."
    >>
    >> Is there some setting that I could change to not get
    >> the blocking? The testing works fine in Firefox.

    >
    > Are you loading the page with the script from your hard disk? This is
    > expected behaviour if so, as IE will restrict script access for pages loaded
    > from the My Computer security zone. You can add a "Mark of the Web" to the
    > HTML so that IE will run it in the Internet security zone which will let you
    > test code as if it was loaded from a website.
    >
    > http://msdn.microsoft.com/en-us/library/ms537628(VS.85).aspx
    >

    Yes. That works.
    Thank you.
     

Share This Page