[英]find a plugin installed?
From web, I want to detect if our application has been installed or not. 从Web,我想检测是否已安装我们的应用程序。 With number of research, we have found this site:
通过大量研究,我们找到了以下站点:
Detect from browser if specific application is installed 从浏览器检测是否安装了特定的应用程序
There is a light for us to write something to detect: 我们可以轻描淡写地写一些东西来检测:
if (navigator.plugins["Adobe Acrobat"]) {
// do some stuff if it is installed
} else {
// do some other stuff if its not installed
}
The questions are: 问题是:
Thanks in advance. 提前致谢。
1 You will have to check each browser vendor for their plugin api. 1您将必须检查每个浏览器供应商的插件API。
2a For security, the only way javascript is allowed to check for installed programs is if it is a plugin for that particular browser 2a为了安全起见,允许javascript检查安装程序的唯一方法是它是否是该特定浏览器的插件
2b Each browser is different. 2b每个浏览器都不同。
3 Each browser is different. 3每个浏览器都不同。 Check the plugin api's (most browsers use a similar api called npapi)
检查插件的api(大多数浏览器使用名为npapi的类似api)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.