Web Development Knowledge Base
| |
Sections :
You too, please publish your useful code snippets in any programming language : write an article ! Plateforme d'envoi de gros fichiers en ligne Dépannage site web Blog infogérance Hébergement e-mail |
Olivier Ligny - - 11/03/2008 - vue 4308 fois
Détection d'un plugin par son CLASSIDVoici comment détecter si un plugin est installé sur le client, en connaissant uniquement son CLASSID :
// Detection of an ActiveX plugin inside Internet Explorer on Windows
var result;
function IEDetectObject(ClassID)
{
result = false;
document.write('<'+'SCRIPT LANGUAGE=VBScript> n');
document.write('on error resume next n');
document.write('result = IsObject(CreateObject("' + ClassID + '")) n');
document.write('<'+'/SCRIPT> n');
return result;
}
alert("Plugin found ? "+IEDetectObject('D27CDB6E-AE6D-11cf-96B8-444553540000'));
Fonctionne sous Internet Explorer uniquement. |
| Nos partenaires : iPhone 8 Cases & Protection | |