Contains information about the current web browser.
Browser/User Agent Support
| IE | Mozilla | Netscape | Opera | Safari | 3.0+ | 1.0+ | 2.0+ | 7.0+ | 1.0+ |
|---|
Constructors
| Constructor | IE | Mozilla | Netscape | Opera | Safari |
|---|---|---|---|---|---|
Creates a new instance of a Navigator object. | 3.0+ | 1.0+ | 2.0+ | 7.0+ | 1.0+ |
Properties
| Property | IE | Mozilla | Netscape | Opera | Safari |
|---|---|---|---|---|---|
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. | no | 1.0+ | 4.0+ | 7.0+ | 1.0+ |
Array of MIME type objects supported by the web browser. | no | 1.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. | no | 1.0+ | 3.0+ | 7.0+ | 1.0+ |
Default language of the OS. | 4.0+ | no | no | no | no |
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+ | no | no | no | no |
Methods
| Method | IE | Mozilla | Netscape | Opera | Safari |
|---|---|---|---|---|---|
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. | no | 1.0+ | 3.0+ | no | no |
References
Availability
JavaScript 1.0 | enhanced in JavaScript 1.1 and 1.2
Constructor Detail
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.
| Boolean | reload | Specify true if the browser should reload pages that contain <embed> tags and use plugins. (optional) |
