简体   繁体   English

Internet Explorer添加和网站

[英]Internet explorer add on and the website

Is the website able to determine if a particular IE add on has been installed or not? 网站是否可以确定是否已安装特定的IE插件?

How do you have the web page detect the IE add on? 您如何让网页检测IE插件?

In general, no; 一般来说,不可以; however it depends on what the add-on does. 但是,这取决于插件的功能。 If it modifies the web page in some way (eg removing ads) then it should be possible to use Javascript to detect if the current page has been modified. 如果它以某种方式修改了网页(例如删除广告),则应该可以使用Javascript检测当前页面是否被修改。

If the addon is available via Javascript/ActiveX interface, its absense may be checked by catching an exception on calling some (missing) addon's function. 如果可以通过Javascript / ActiveX接口使用该插件,则可以通过在调用某些(缺少的)插件函数时捕获异常来检查其缺失。

This way, checking for few common addons leads to nice browser's fingerprinting method. 这样,检查一些常见的附加组件将导致不错的浏览器指纹识别方法。 Refer to: http://www.informatica64.com/Wbfingerprinting/ 请参阅: http//www.informatica64.com/Wbfingerprinting/

No doubt you can detect most through JavaScript; 毫无疑问,您可以通过JavaScript进行最多的检测。 it'd be addon-specific. 它是特定于插件的。

In IE just expose an Active X control from your add-on, and then instantiate it using new ActiveXControl() inside a Javascript try {} block. 在IE中,只需从您的加载项中公开一个Active X控件,然后使用Javascript try {}块中的new ActiveXControl()实例化它即可。 If it succeeds, your extension is installed. 如果成功,则说明您的扩展程序已安装。 If it fails, probably not. 如果失败,可能不会。 You can even expose a .version() method to get the version of the control. 您甚至可以公开.version()方法以获取控件的版本。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM