在IE中运行javascript而没有警告'您尝试访问的网页想要运行activex控件' [英] running javascript in IE without warning 'the webpage you are trying to access wants to run activex control'

查看:159
本文介绍了在IE中运行javascript而没有警告'您尝试访问的网页想要运行activex控件'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有在尝试执行javascript时停止在IE中弹出警告消息?

is there anyway to stop popping up the warning message in IE when trying to execute javascript?

我想要一些不需要修改IE设置的解决方案由用户手动。

I want some solution which does not need modifying the settings in the IE manually by the user.

谢谢,

推荐答案

如果留言当你在本地运行脚本而不是为你的访问者上传脚本到服务器时,它只出现在你面前,我建议你做以下三件事之一:

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. 拥有一个可用于运行正在开发的东西的测试服务器。这将避免在本地运行脚本时可能出现的问题。 Apache或IIS应该允许你这样做,尽管你必须研究如何让你选择使用的服务器像生产环境一样工作(例如:PHP)。

  2. 如果你想要要继续在本地测试您的脚本,您可以为您的页面提供 Web of Mark <! - 保存自url =(0014)about:internet - > )。这将强制页面在Internet安全区域中运行,并避免在本地打开包含脚本的HTML文件时看到的消息。

  3. 如果有某些原因您无法提供在MOTW页面上,您可以配置Internet Explorer以允许脚本在本地执行(请注意,这有点危险,因为包含脚本的本地文件可以执行恶意操作)。转到工具> Internet选项> 高级标签>滚动到安全部分,然后检查允许有效要在我的电脑上的文件中运行的内容

  1. Have a test server that you can use to run the things you are developing. This will avoid issues that might come 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

这篇关于在IE中运行javascript而没有警告'您尝试访问的网页想要运行activex控件'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆