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