JavaScript Multimedia

JavaScript navigator object includes child object which is called as plug-ins. This object is basically an array, with one entry for each plug-in installed in browser.

JavaScript Multimedia Example

Here is an example, lists down all the plug-in installed in your browser:

<html>
<head>
<title>List of Plug-Ins Installed</title>
<style>
   table,th,td{border:1px solid black;}
</style>
</head>
<body>

<table>
<tr>
    <th>Plug-in Name</th>
    <th>Filename</th>
    <th>Description</th>
</tr>
<script language="JavaScript" type="text/javascript">
   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>

Here is the output produced by the above JavaScript Multimedia example code. This is the output produced in Safari browser:

javascript multimedia

This is the output produced in Google Chrome browser:

find plug in installed in browser javascript

This is the output produced in Mozilla Firefox browser:

javascript multimedia example

Here is the live demo output produced in your current browser (you are using). The above JavaScript Multimedia example code will display the following result (all the plug-in installed with their name, filename and description):

Plug-in Name Filename Description

JavaScript Online Test


« Previous Tutorial Next Tutorial »