

All 4 digits are detectable in this particular case. Then version will be null or a string "Major,Minor,Revision,Build". Var version = PluginDetect.getVersion('Flash', true) On the other hand, if we add another input argument to the getVersion( ) method, then the Flash player will be inserted into the DOM and queried directly. The detection results were obtained from the ugins array, which for Chrome/Windows only reveals the first 3 numbers. The last digit would be zero in this case, because it was not detectable. Then version will be null or a string "Major,Minor,Revision,0". Var version = PluginDetect.getVersion('Flash') For example, if we use this code for the Chrome browser on Windows: Each of these 4 numbers is an integer >=0.įor Internet Explorer, all 4 numbers are always detected.įor all other browsers, you will get either 3 or 4 numbers, depending on the circumstances. The method will return a value of either null or a string of 4 numbers "Major,Minor,Revision,Build" separated by a comma.

The plugin version is detected by the getVersion( ) method.
