Detecting plugins in Internet Explorer without instantiating an object
1 answer
While I'm not sure if it is possible to test the creation of an object, you can get around the security exceptions with a try-catch javascript block.
For example:
function checkForObject() {
try{
var conn = new ActiveXObject('Msxml2.XMLHTTP');
return true;
} catch (e) {
return false;
}
}
In this case, the actual error is captured and hidden from the user.
-1
source to share