OBJECT:  Navigator

The Navigator object is designed to contain information about the version of Netscape Navigator which is being used. However, it can also be used with Internet Explorer. All of its properties, which are read-only, contain information about different aspects of the browser.
appCodeName Property
This property contains a string which specifies the code name of the browser.
Syntax: navigator.appCodeName
appName Property
This property is a string that specifies the name of the browser. With a Netscape browser this property contains the string "Netscape", while with an IE explorer it contains "Microsoft Internet Explorer".
Syntax: navigator.appName
appVersion Property
This property contains information about the browser version being used. If it is a Netscape browser, it contains the release number, the language used, the platform on which the browser is running, and either the letter I to indicate the international release, or the letter U for the domestic US release which has stronger encryption. e.g., '4.5 [en] (WinNT; I)'. With IE, this property only contains information about the compatible version of Internet Explorer and the platform, such as: '4.0 (compatible; MSIE 4.01; Windows NT)'.
Syntax: navigator.appVersion
language propertyNetscape Only Feature
This Property contains information, usually in the form of two letters, on the language translation of the browser.
Syntax: navigator.language
mimeTypes PropertyNetscape Only Feature
This property is an array of all the MIME (Multipart Internet Mail Extension) types supported by the client.
Syntax: navigator.mimeTypes
platform Property
This property contains a string indicating the machine type for which the browser was compiled. e.g., 'Win32' is a 32 bit Windows machine.
Syntax: navigator.platform
plugins PropertyNetscape Only Feature
This property is an array of all the plugins installed on the client. The plugin property also has its own method: plugins.refresh
Syntax: navigator.plugins
userAgent Property
This property contains a string representing the value of the user-agent header sent by the client to the server in the http protocol. This information consists of the code name and the version of the browser, and is used by the server to identify the client.
Syntax: navigator.userAgent
javaEnabled Method
This method tests whether or not Java is enabled returning true if it is and false if not.
Syntax: navigator.javaEnabled()
plugins.refresh MethodNetscape Only Feature
This method makes newly-installed plugins available and updates relevent arrays such as the plugins array. If you specify the value true, this method reloads all open documents containing embedded objects, whereas supplying false does not cause this to happen.
Syntax: navigator.plugins.refresh(true | false)
preference MethodNetscape Only Feature
This method allows a signed script to get and set certain Navigator preferences.
Syntax: navigator.preference(prefName[, setValue])
taintEnabled Method
This method determines whether or not data tainting is enabled returning true if it is, and false if not.
Syntax: navigator.taintEnabled()

Copyright 1999-2001 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information