Navigator Object


navigator Object

Description

An object that resides below the window in the scripting object model. This object represents "stub" variables for the Netscape Navigator browser. Navigator Object makes your code compatible with the Navigator browser.

The navigator object provides information about the browser application to script writers.

Properties

appCodeName, appName, appVersion, userAgent


Properties


appCodeName Property

Description

Returns the code name of the application.

Syntax

navigator.appCodeName

PartDescription
navigator An object expression that evaluates to a history object.

Return Value

Returns a string containing the current application code name.

Applies To

Navigator

Properties

appName, appVersion, userAgent


appName Property

Description

Returns the name of the application. Internet Explorer 3.0 currently returns "Microsoft".

Syntax

navigator.appName

PartDescription
navigator An object expression that evaluates to a history object.

Return Value

Returns a string containing the current application name.

Applies To

Navigator

Properties

appCodeName, appVersion, userAgent


appVersion Property

Description

Returns the version of the application.

Syntax

navigator.appVersion

PartDescription
navigator An object expression that evaluates to a history object.

Return Value

Returns a string containing the current application version.

Applies To

Navigator

Properties

appCodeName, appName, userAgent


userAgent Property

Description

Returns the user agent of the application. Internet Explorer 3.0 currently returns "Mozilla/2.0".

Syntax

navigator.userAgent

PartDescription
navigator An object expression that evaluates to a history object.

Return Value

Returns a string containing the current application user agent.

Applies To

Navigator

Properties

appCodeName, appName, appVersion

© 1996 Microsoft Corporation