Naveen
Naveen

Reputation: 1060

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?

Upvotes: 0

Views: 353

Answers (1)

Rob
Rob

Reputation: 4947

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

Upvotes: 0

Related Questions