js判断客户端是否安装了activex控件(收藏)
采用object元素的object属性是否为空可以判断此控件是否存在,如
<object classid="clsid:00460182-9E5E-11d5-B7C8-B8269041DD57" id="oframe" width="100%" height="100%">
<param name="BorderStyle" value="1">
<param name="TitlebarColor" value="52479">
<param name="TitlebarTextColor" value="0">
<param name="Menubar" value="1">
</object>
<script>
if(document.all.oframe.object == null) {
alert("控件不存在,您还不能使用此功能!")
</script>
采用object元素的object属性是否为空可以判断此控件是否存在,如
<object classid="clsid:00460182-9E5E-11d5-B7C8-B8269041DD57" id="oframe" width="100%" height="100%">
<param name="BorderStyle" value="1">
<param name="TitlebarColor" value="52479">
<param name="TitlebarTextColor" value="0">
<param name="Menubar" value="1">
</object>
<script>
if(document.all.oframe.object == null) {
alert("控件不存在,您还不能使用此功能!")
</script>