Scan through each plug-in by provided parameters : PlugIn « Development « JavaScript DHTML






Scan through each plug-in by provided parameters

<html>
<head>
<script language="JavaScript">
<!--
document.write("There are <b>" + navigator.plugins.length + "</b> plug-ins installed.<p>");
document.write("<table border=1 width='100%' cellpadding=5>" +
               "<tr>" +
               "<td>Name</td>" +
               "<td>Description</td>" +
               "<td>Filename</td>" +
               "<td>Suffixes / MIME " + "type</td>" +
               "</tr>");

for (n=0; n < navigator.plugins.length; n++) {
    document.write("<tr valign='top'>" +
                   "<td>" + navigator.plugins[n].name + "</td>" +
                   "<td>" + navigator.plugins[n].description + "</td>" +
                   "<td>" + navigator.plugins[n].filename +"</td><td>");
    for (m=0; m < navigator.plugins[n].length; m++) {
        document.write(navigator.plugins[n][m].suffixes + " = " + navigator.plugins[n][m].type +
                       "<br>");
    }
    document.write("</td></tr>");
}
document.write("</table>");
//-->
</script>
</head>
</html>


           
       








Related examples in the same category

1. Listing Plug-In Properties
2.Synchronizing Two Plug-Ins
3. Accessing a Plug-In
4.Determining Whether the LiveVideo Plug-In Is Installed
5.JavaScript to enumerate and display all installed plug-ins
6.Displaying Plug-In Information
7.Display PDF using plugin
8.Find pluin for Midi
9.Displaying a List of Navigator Plug-Ins
10.Properties of the Plugin Object