Scan through each plug-in by provided parameters : PlugIn : Development JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » Development » PlugIn »

 

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>


           
       



-

Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

JAVASCRIPT DHTML TUTORIALS

 Navioo Development
» PlugIn