浏览器插件检查

IE浏览器

<object ID="BrowserTerminal" 
CLASSID="CLSID:71D2FC55-6C66-4A23-A546-B3F9244EC3C5" ></object>
<script>
 try{
   var ax = new ActiveXObject("activexqtterminal.BrowserTerminal.1");
//activexqtterminal.BrowserTerminal.1根据clsid在注册表中查询
                alert("已经安装");
            } catch (e){
                alert("未安装");
            }
</script>

标准浏览器

<embed type="npqtterminal/very" id="browt" >
<script>
 If(navigator.mimeTypes["npqtterminal/very"]){
alert(“安装”)
}
</script>
posted @ 2018-09-07 17:24  Janas  阅读(120)  评论(0编辑  收藏  举报