dcsimg
www.webdeveloper.com
Results 1 to 7 of 7

Thread: IE Security Notice

  1. #1
    Join Date
    Feb 2005
    Posts
    13

    IE Security Notice

    What is it that sets off the IE security notice when including Javascript? Even the simplest script I write:

    <html>
    <body>
    <script type="text/javascript">document.writeln('Hello World.')</script>
    </body>
    </html>

    brings about the very annoying "To help protect your security, Internet Explorer has restricted this file from showing active content." message.

    Conversely, I have seen very complicated sites with a large amount of Javascript which don't cause this warning, so I know it's not just a browser setting.

    Incidentally, opening the same content in Firefox, which is, without a doubt, the more secure browser, causes no such message.

  2. #2
    Join Date
    Apr 2003
    Location
    Netherlands
    Posts
    21,654
    Do you mean that yellow bar at the top of the window.
    Tools > Internet Options ... > Advanced
    Scroll down to Security
    Switch on: Allow active content to run in files on My Computer
    You may need to do the same for CD's.

    IE is warning you about running scripts locally.

  3. #3
    Join Date
    Feb 2005
    Posts
    13
    I knew it was something right under my nose. My apologies for cluttering the group with trivial postings. I resist using IE as much as possible, and I suppose that includes learning anything about it.

    Thanks.

  4. #4
    Join Date
    Apr 2003
    Location
    Netherlands
    Posts
    21,654
    No problem. Do learn about IE, it's still the major browser.

  5. #5
    Join Date
    Mar 2005
    Posts
    10
    Theres something more to it believe. If you take a look at http://search.msn.com, their SEARCH BUILDER is a javascript but it shows no such error for it even though I've Active content disabled. ie. shows error for my JS but not for MSN.

    I'm sure there is some fix in the Script itself to avoid the block/error.

  6. #6
    Join Date
    Apr 2003
    Location
    Netherlands
    Posts
    21,654
    Do you get the error when opening the page locally or online?

  7. #7
    Join Date
    Apr 2005
    Posts
    1
    As of Windows XP SP2, there is a new security feature that applies to local content. As mentioned above, there is a user preference to turn it off. Script statements that execute automatically appear to trigger the warning. Global statements, for example, and I think <BODY ONLOAD="..."> will cause it, too.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles