4 <script language=
"Javascript"> <!--
5 function listPlugins() {
6 document
.write("<table border=\"1\">");
7 document
.write("<tr>%2</tr>");
8 for (i
= 0; i
< navigator
.plugins
.length
; i
++)
10 document
.write("<tr><td>"+navigator
.plugins
[i
].name
);
11 document
.write("</td><td>"+navigator
.plugins
[i
].description
);
12 document
.write("</td><td>"+navigator
.plugins
[i
].filename
);
13 document
.write("</td><td><ul>");
14 for (j
= 0; j
< navigator
.plugins
[i
].length
; j
++)
16 document
.write("<li>"+navigator
.plugins
[i
][j
].type
+" - "
17 +navigator
.plugins
[i
][j
].description
+" ("
18 +navigator
.plugins
[i
][j
].suffixes
+")</li>");
20 document
.write("</ul></td></tr>");
22 document
.write("</table>");
24 document
.write("<br/><br/>");
26 document
.write("<table border=\"1\">");
27 document
.write("<tr>%4</tr>");
28 for (i
= 0; i
< navigator
.mimeTypes
.length
; i
++)
30 document
.write("<tr><td>"+navigator
.mimeTypes
[i
].type
);
31 document
.write("</td><td>"+navigator
.mimeTypes
[i
].description
);
32 document
.write("</td><td>"+navigator
.mimeTypes
[i
].suffixes
);
33 if (navigator
.mimeTypes
[i
].enabledPlugin
) {
34 document
.write("</td><td>");
35 // This could be enhanced to write the plugin name(s) by
36 // searching through navigator.plugins[][]
39 document
.write("</td></tr>");
41 document
.write("</table>");
45 <body onload
="listPlugins();">