View Full Version : set script as safe

10-26-2005, 08:48 PM
I'm trying to use a java script in my website, but when I try to view it the internet explores open a litle bar in the top of the IE saying: "to help protect your security Internet Explorer has restricted this file from showing active content that could access your computer..."
And the script only works if I press the options in the bar and allow the script to work. It is possible to set the script safe, and dont have to be opening the options all the time??

10-27-2005, 05:31 AM
That only happens locally as a security measure. As far as IE is concerned, javascript is ActiveX. Click on the bar and click on allow and click on yes. Once your page is live, this will not happen. You can also give your page 'the mark of the web'. That way it will not display the security bar locally either. Put this right after your <html> tag like so:

<!-- saved from url=(0014)about:internet -->
<!-- this and above comment should be removed for live, non-demo use -->

But, navigating away from the page to another local page, or including another local page on it via a frame or an iframe can be problematical if said page does not also have 'the mark of the web' on it.