How to list down all the plug-in installed in your browser?


To list down all the plug-on installed in the web browser, use the JavaScript navigator object. The JavaScript navigator object includes a child object called plugins. This object is an array, with one entry for each plug-in installed on the browser.

Example

You can try to run the following code to list down all the plug-in installed in your browser −

<html>
   <head>
      <title>List of Plug-Ins</title>
   </head>
 
   <body>
      <table border="1">
         <tr>
            <th>Plug-in Name</th>
            <th>Filename</th>
            <th>Description</th>
         </tr>
         <script>
            for (i = 0;  i < navigator.plugins.length;  i++)
            {
               document.write("<tr><td>");
               document.write(navigator.plugins[i].name);
               
               document.write("</td><td>");
               document.write(navigator.plugins[i].filename);
               
               document.write("</td><td>");
               document.write(navigator.plugins[i].description);
               document.write("</td></tr>");
            }
         </script>
      </table>
   </body>
</html>

Updated on: 23-Jun-2020

725 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements