get installed plugins in a browser via javascript

Solutions on MaxInterview for get installed plugins in a browser via javascript by the best coders in the world

showing results for - "get installed plugins in a browser via javascript"
Ian
08 Apr 2016
1<html>
2<body>
3<div id="example"></div>
4<script type="text/javascript">
5var x=navigator.plugins.length; // store the total no of plugin stored 
6var txt="Total plugin installed: "+x+"<br/>";
7txt+="Available plugins are->"+"<br/>";
8for(var i=0;i<x;i++)
9{
10  txt+=navigator.plugins[i].name + "<br/>"; 
11}
12document.getElementById("example").innerHTML=txt;
13</script>
14</body>
15</html>