简体   繁体   English

如何在使用JavaScript的情况下启用ActiveX控件

[英]How to enable activex controls in ie using javascript

Is it there any way to enable activex controls of internet explorer through javascript ,I searched internet cant find any trusted resources , is it possible to enable activex controls through javascript 有没有办法通过javascript启用Internet Explorer的Activex控件,我搜索了互联网找不到任何受信任的资源,是否有可能通过javascript启用Activex控件

The only source which i got can be found here 我得到的唯一来源可以在这里找到

Thanks In advance 提前致谢

Enabling ActiveX through javascript is not possible. 无法通过javascript启用ActiveX。 This is a browser level setting. 这是浏览器级别的设置。

I don't think there is a way to activate them via JavaScipt or anything like that. 我认为没有办法通过JavaScipt或类似方法激活它们。 I think it used to be a security measure, but I'm not sure. 我认为这曾经是一种安全措施,但我不确定。

If you look at MSDN however there is a solution: http://msdn.microsoft.com/en-us/library/ms537508(v=vs.85).aspx If you dynamicaly add controls through JavaScript after the DOM is loaded they get activated right away. 如果您查看MSDN,则有解决方案: http : //msdn.microsoft.com/zh-cn/library/ms537508(v=vs.85).aspx如果在加载DOM后通过JavaScript动态添加控件,则它们立即激活。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在读取XLS / XLSX本地文件时,如何使用IE的JavaScript代码启用未标记为安全的ActiveX控件 - How to enable ActiveX controls not marked as safe using javascript code for IE, while reading XLS/XLSX local files 如何通过js或批处理文件自动启用IE中的“初始化和脚本未标记为安全脚本(ActiveXObject)的activex控件” - How to enable “initialize and script activex controls not marked as safe for scripting(ActiveXObject)” in IE automatically through js or batch file 如何使用JavaScript抑制IE7 ActiveX消息? - How do you suppress IE7 ActiveX messages using javascript? 如何在无需实例化ActiveXObject的情况下在IE 8/9/10中检测ActiveX控件 - How to detect ActiveX controls in IE 8/9/10 without having to instantiate ActiveXObject 启用Activex控件的Javascript - Javascript to enable Activex control 浏览器详细信息来自javascript而不使用ActiveX控件 - Browser Details from javascript without using ActiveX controls 在IE中禁用ActiveX特定的ocx(或特定的ActiveX控件) - Disabling ActiveX a specific ocx (or specific ActiveX controls) in IE 如何在IE8上启用JavaScript? - how to enable JavaScript on IE8? 如何使用JavaScript在IE9中启用工具栏? - how to enable tool bar in IE9 using JavaScript? 如何在没有Java中的activeX对象的情况下在IE 5中检查文件大小? - How to check filesize in IE 5 without activeX object in Javascript?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM