IE11 prevents ActiveX from running

后端 未结 7 880
终归单人心
终归单人心 2020-11-30 08:37

Our web browser plugin works fine in IE9 and IE10 but in IE11 the plugin is neither recognized as an add-on or allowed to run. It\'s as if IE11 no longer supports ActiveX.

7条回答
  •  清歌不尽
    2020-11-30 09:28

    Does IE11 displays any message relative to the blocked execution of your ActiveX ?

    You should read this and this.

    Use the following JS function to detect support of ActiveX :

    function IsActiveXSupported() {
        var isSupported = false;
    
        if(window.ActiveXObject) {
            return true;
        }
    
        if("ActiveXObject" in window) {
            return true;
        }
    
        try {
            var xmlDom = new ActiveXObject("Microsoft.XMLDOM");
            isSupported = true;
        } catch (e) {
            if (e.name === "TypeError" || e.name === "Error") {
                isSupported = true;
            }
        }
    
        return isSupported;
    }
    

提交回复
热议问题