Previous Chapter's Examples-|-Next Example-|-Return to Chapter Listing

Example 10.1:
Objects and Properties--the navigator Properties


This example displays the properties of the Navigator object.
These are the scripts we used. First, in the HEAD: <SCRIPT LANGUAGE="JavaScript"> <!-- 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) } //--> </SCRIPT> Later in the script the function is called from this script: <SCRIPT LANGUAGE="JavaScript"> <!-- DisplayProperties() //--> </SCRIPT>


Previous Chapter's Examples-|-Next Example-|-Return to Chapter Listing