インストールされているプラグインを判定する JavaScript QuickTimeやFlashプラグインが、インストールされているかを判定するコード、を、Google Code Searchから切り貼りした。 function checkPlugin(mimeType, comNames){ comNames = [].concat(comNames); if(navigator.userAgent.indexOf('MSIE')==-1){ return !!navigator.mimeTypes[mimeType]; } for(var i=comNames.length-1 ; comNames[i] ; i-- ){ try{ new ActiveXObject(comNames[i]); return true; }catch(e){ } } return false; } 実