J3 Limited
 
Google
WWW J3Ltd
 
Navigator Object

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]

  Copyright © 2000 J3 Ltd Permission is granted to reproduce material on this page, on the condition that a reference to "WWW.J3Ltd.com" is given as the source of the material.