The navigator Properties

This example displays the properties of the Navigator object. This particular example also illustrates some of the differences between the Netscape Browsers and the Microsoft Browsers. The Microsoft Browsers, for example, don't understand the mimeTypes[] and plugins[] Arrays. So, if you run this example in Netscape everything works fine, however, if you run this example in the Explorer you will get an error message.


<SCRIPT>

function DisplayProperties() {
     document.write("<P><B>navigator.appCodeName =</B> " + navigator.appCodeName);
     document.write("<P><B>navigator.appName =</B> " + navigator.appName);
     document.write("<P><B>navigator.appVersion =</B> " + navigator.appVersion);
     document.write("<P><B>navigator.userAgent =</B> " + navigator.userAgent);
     document.write("<P><B>navigator.mimeTypes[0].type =</B> " + navigator.mimeTypes[0].type);
     document.write("<P><B>navigator.plugins[0].name =</B> " + navigator.plugins[0].name);
     document.write("<P><B>navigator.language =</B> " + navigator.language);
     document.write("<P><B>navigator.platform =</B> " + navigator.platform);
}

</SCRIPT>

Later in the script the function is called from this script:

 <SCRIPT>

DisplayProperties();

</SCRIPT>