Navigator : Object

Contains information about the current web browser.

Browser/User Agent Support

IEMozillaNetscapeOperaSafari
3.0+1.0+2.0+7.0+1.0+

Constructors

ConstructorIEMozillaNetscapeOperaSafari
Creates a new instance of a Navigator object.
3.0+1.0+2.0+7.0+1.0+
 

Properties

PropertyIEMozillaNetscapeOperaSafari
Code name of the browser.
3.0+1.0+3.0+7.0+1.0+
 
Name of the browser.
3.0+1.0+3.0+7.0+1.0+
 
Platform and version of the web browser.
3.0+1.0+3.0+7.0+1.0+
 
Whether or not the browser has cookies enabled.
4.0+1.0+6.0+7.0+1.0+
 
Default language of the web browser.
no1.0+4.0+7.0+1.0+
 
Array of MIME type objects supported by the web browser.
no1.0+2.0+7.0+1.0+
 
Client OS.
4.0+1.0+4.0+7.0+1.0+
 
Array of plugins installed in the browser.
no1.0+3.0+7.0+1.0+
 
Default language of the OS.
4.0+nononono
 
Specifies the value the browser uses for the user-agent header in http requests.
3.0+1.0+2.0+7.0+1.0+
 
Preferred language of the user.
4.0+nononono
 

Methods

MethodIEMozillaNetscapeOperaSafari
Specifies whether or not Java is supported and enabled by the browser.
4.0+1.0+3.0+7.0+1.0+
 
Makes newly installed plugins available to the web browser.
no1.0+3.0+nono
 

References

MimeType | Plugin

Availability

JavaScript 1.0 | enhanced in JavaScript 1.1 and 1.2

Constructor Detail

Navigator Navigator()

Creates a new instance of a Navigator object.

Visibility
internal

Property Detail

String appCodeName

Code name of the browser.

String appName

Name of the browser.

String appVersion

Platform and version of the web browser.

Boolean cookieEnabled

Whether or not the browser has cookies enabled.

String language

Default language of the web browser.

Array mimeTypes

Array of MIME type objects supported by the web browser.

String platform

Client OS.

Array plugins

Array of plugins installed in the browser.

String systemLanguage - read-only only

Default language of the OS.

String userAgent

Specifies the value the browser uses for the user-agent header in http requests.

String userLanguage

Preferred language of the user.

Method Detail

javaEnabled() : Boolean

Specifies whether or not Java is supported and enabled by the browser.

Availability

JavaScript 1.1

plugins.refresh([Boolean reload]) : Object

Makes newly installed plugins available to the web browser.

BooleanreloadSpecify true if the browser should reload pages that contain <embed> tags and use plugins. (optional)