How do I detect if ActiveX is enabled in the browser of client?

后端 未结 4 778
萌比男神i
萌比男神i 2020-12-06 05:04

How do I detect if ActiveX is enabled in the browser of client?

I tried following code, but it\'s not working in Firefox.

window.ActiveXObject not wo         


        
4条回答
  •  南笙
    南笙 (楼主)
    2020-12-06 05:16

    Below code should work, It is working on IE6 & FF 3.6.12 atleast.

    if(typeof(window.ActiveXObject)=="undefined"){
        alert("ActiveX Object not supported");
    }else {
        alert("ActiveX Object  supported");
    }
    

提交回复
热议问题