最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

running javascript in IE without warning 'the webpage you are trying to access wants to run activex control' - S

programmeradmin0浏览0评论

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
 |  Show 1 more ment

2 Answers 2

Reset to default 8

If 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:

  1. 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).
  2. 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.
  3. 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 :)

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论