0

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?

Naveen
  • 1,040
  • 4
  • 15
  • 38

1 Answers1

0
function AXOrNull(progId) {
  try {
    return new ActiveXObject(progId);
  }
  catch (ex) {
    return null;
  }
}
Rob
  • 4,927
  • 12
  • 49
  • 54
  • Thanks Rob. The code that you'd mentioned will initialize the plugin. However I want to find out if my plugin is installed or not without initialzing it (using new). Thanks in advance!! – Naveen Jun 18 '13 at 10:59
  • Hmm maybe `typeof(ActiveXObject) != 'undefined'`? – Rob Jun 18 '13 at 11:01