Navigator Object
Contents
[Contents] [Tutorial]
[Object
Hierrachy] [Language]
[Expressions]
[Statements]
Introduction
The navigator object is a good place to start, it does not have
very much at all. It allows a script to get information about the
browser which is being used to view the document.
Properties
- appCodeName gets the code name of the browser:
The code to print this is as follows:
<SCRIPT LANGUAGE="JavaScript">
document.write(navigator.appCodeName)
</SCRIPT>
- appName gets the name of the browser:
<SCRIPT LANGUAGE="JavaScript">
document.write(navigator.appName)
</SCRIPT>
- appVersion gets the version of the browser:
<SCRIPT LANGUAGE="JavaScript">
document.write(navigator.appVersion)
</SCRIPT>
[Contents] [Tutorial]
[Object
Hierrachy] [Language]
[Expressions]
[Statements]
Methods
none
Events
none
[Contents] [Tutorial]
[Object
Hierrachy] [Language]
[Expressions]
[Statements]
|