Previous Example-|-Next Example-|-Return to Chapter Listing

Example 13.10
What File Types Can the Browser Work With?

[This example works with Netscape Navigator 3 and 4. It will not work in Internet Explorer 3.]

This page uses the plugins and mimeTypes arrays to show you what plug-ins are installed on your browser, and what MIME types can be handled by your browser:

These are the MIME Types:

These are the plug-ins:


We have these scripts in the BODY: <script language="JAVASCRIPT"> <!-- for (i=0; i < navigator.mimeTypes.length; i++) {    document.write("<B>" + i + ": " + navigator.mimeTypes[i].type + ":</B><BR>" + navigator.mimeTypes[i].description + "<BR>>" + navigator.mimeTypes[i].suffixes + "<BR>" + navigator.mimeTypes[i].enabledPlugin + "<P>") } //--> </script> <h3>These are the plug-ins:</h3> <script language="JAVASCRIPT"> <!-- for (i=0; i < navigator.plugins.length; i++) {    document.write("<B>" + i + ": " + navigator.plugins[i].name + ":</B><BR>" + navigator.plugins[i].filename + "<BR>" + navigator.plugins[i].description + "<BR>" + navigator.plugins[i].length + "<P>") } //--> </script>
Previous Example-|-Next Example-|-Return to Chapter Listing