is there anyway to stop popping up the warning message in IE when trying to execute javascript?
I want some solution which does not need modifying the settings in the IE manually by the user.
Thanks,
is there anyway to stop popping up the warning message in IE when trying to execute javascript?
I want some solution which does not need modifying the settings in the IE manually by the user.
Thanks,
Share Improve this question asked Sep 9, 2009 at 17:21 JProJPro 6,55613 gold badges59 silver badges85 bronze badges 6- version of IE? are you running a site on the internet or intranet, or locally? – mkoryak Commented Sep 9, 2009 at 17:27
- 2 This only occurs with local files. – James Commented Sep 9, 2009 at 17:28
- i am running IE7 locally testing some scripts.if i upload it to server , it is not going to plain? – JPro Commented Sep 9, 2009 at 17:29
- 1 users of my website plain that they receive such warnings and they are suspecious to view my website. what to do about that? – JPro Commented Sep 9, 2009 at 17:39
- What's that smell? is it fish? – user1228 Commented Sep 9, 2009 at 17:44
2 Answers
Reset to default 8If the message is only appearing for you when you run the scripts locally and not for your visitors when you upload your scripts to the server, I'd suggest one of three things:
- Have a test server that you can use to run the things you are developing. This will avoid issues that might e up when you are running scripts locally. Apache or IIS should allow you to do this, although you will have to research how to get the server you choose to use working like your production environment (example: PHP).
- If you want to continue to test your scripts locally, you can give your pages the Mark of the Web (
<!-- saved from url=(0014)about:internet -->
). This will force the page to run in the Internet Security Zone and avoid the message you see when you open an HTML file containing script locally. - If there is some reason you can't give the pages the MOTW, you can configure Internet Explorer to allow scripts to execute locally (note this is a bit dangerous since local files containing script can do something malicious). Go to Tools > Internet Options > Advanced tab > scroll to the Security section and check Allow active content to run in files on My Computer
This only occurs when you open local files. And no; there's no way to avoid this.
Or so I thought.. Untill Grant Wagner came by and gave his two cents :)