just wondering how I can get all the browser plugins object?
I know about navigator.plugins method, But need an object with only the plugin name.
Any Ideas?
If you are using jQuery and a browser that supports navigator.plugins (doesn't seem to include IE), then the following code will return you a Javascript array of the names of plugins present:
jQuery.map(navigator.plugins, function(element, index) { return element.name; });
EDIT: For an IE solution, see this helpful page with some handy functions you could fairly easily use if required. Note that it doesn't show all plugins, but it does show how to determine if some of the common plugins (Flash, Java, Adobe Reader, etc) are present.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With