In Firefox I can refere开发者_高级运维nce
navigator.plugins["myplugin"].version
but the property 'version' doesn't exist in chrome. The particular plugin I'm working with is the Citrix Client Receiver plugin (download here).
Anyone know anything I don't about where or how else I might be able to get the version number of this plugin in Chrome using JavaScript?
The only way to obtain the version number of a plugin in Chrome is to interpret the name
:
//Example, Shockwave Flash
var version = navigator.plugins["Shockwave Flash"].name.match(/([\d.]+)/);
//used semicolons (grouping) inside the Regular expression, to allow the
// possibility of defining a more detailed/exact version position.
version = version ? version[1] : "";
精彩评论