How to print the information of the installed plugins in JavaScript

1 Answer

0 votes
var plugins_length = navigator.plugins.length;

document.write(plugins_length.toString() + " Plugin(s)<br /><br />");

document.write("Name ||| Filename ||| description<br />");
document.write("---------------------------------<br />");

for(var i = 0; i < plugins_length; i++) 
{
  document.write(
    navigator.plugins[i].name +
    " ||| " +
    navigator.plugins[i].filename +
    " ||| " +
    navigator.plugins[i].description +
    " ||| " +
    navigator.plugins[i].version +
    "<br />");
}


/*
run:

7 Plugin(s)

Name ||| Filename ||| description
---------------------------------
Shockwave Flash ||| NPSWF32_21_0_0_242.dll ||| Shockwave Flash 21.0 r0 ||| 21.0.0.242
Google Update ||| npGoogleUpdate3.dll ||| Google Update ||| 1.3.30.3
iTunes Application Detector ||| npitunes.dll ||| iTunes Detector Plug-in ||| 1.0.1.1
NVIDIA 3D Vision ||| npnv3dv.dll ||| NVIDIA 3D Vision plugin for Mozilla browsers ...
NVIDIA 3D VISION ||| npnv3dvstreaming.dll ||| NVIDIA 3D Vision Streaming plugin for Mozilla ...
...

*/

 



answered Jun 10, 2016 by avibootz

Related questions

1 answer 247 views
1 answer 145 views
1 answer 184 views
1 answer 339 views
1 answer 152 views
...