简体   繁体   中英

Detect a plugin in IE browser - javascript?

Is it possible to detect whether my ActiveX plugin is installed or not in IE browser through javascript?

Any pointers would be quite helpful.

Update: In GChrome browser I can find the number of plugins installed by running navigator.plugins.length in javascript.. Is there any similar code available for IE?

function AXOrNull(progId) {
  try {
    return new ActiveXObject(progId);
  }
  catch (ex) {
    return null;
  }
}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM