Browser Plugins
Is there a way to check to see what plugins are loaded on a browser?
See documentation on the DOM, Plugin Object: Properties = Name,
filename, description, length
function pluginReady(plugin){
for (var(i)=0; i<navigator.plugins.length; i++){
if(navigator.plugins[i].name.toLowerCase()
==plugin.toLowerCase()){
for (var j=0; j <navigator.plugins[i].length; j++){
if(navigator.plugins[i][j].enabledPlugin) {
return true
}
}
return false
}
}
return false
}
Where parameter plugin = string equal to plugin's name as it appears
boldfaced in About Plug-ins Listing from Netscape Navigator's
help listing. It checks a given plugin and mime type. Also, check out
Macromedia's explanation.
|