Contains information about the current web browser.
Platform Support
IE | Mozilla | Netscape | Opera | Safari | 3.0+ | 1.0+ | 2.0+ | 7.0+ | 1.0+ |
---|
Constructors
Constructor | Action | IE | Mozilla | Netscape | Opera | Safari | ||
---|---|---|---|---|---|---|---|---|
Navigator Constructor() : Navigator
Creates a new instance of a Navigator object.
|
Show Details | 3.0+ | 1.0+ | 2.0+ | 7.0+ | 1.0+ | ||
Navigator() : NavigatorCreates a new instance of a Navigator object. Returns
|
Properties
Property | Action | IE | Mozilla | Netscape | Opera | Safari |
---|---|---|---|---|---|---|
Code name of the browser.
|
No Details | 3.0+ | 1.0+ | 3.0+ | 7.0+ | 1.0+ |
|
||||||
Name of the browser.
|
No Details | 3.0+ | 1.0+ | 3.0+ | 7.0+ | 1.0+ |
|
||||||
Platform and version of the web browser.
|
No Details | 3.0+ | 1.0+ | 3.0+ | 7.0+ | 1.0+ |
|
||||||
Whether or not the browser has cookies enabled.
|
No Details | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ |
|
||||||
Default language of the web browser.
|
No Details | no | 1.0+ | 4.0+ | 7.0+ | 1.0+ |
|
||||||
Array of MIME type objects supported by the web browser.
|
No Details | no | 1.0+ | 2.0+ | 7.0+ | 1.0+ |
|
||||||
Client OS.
|
No Details | 4.0+ | 1.0+ | 4.0+ | 7.0+ | 1.0+ |
|
||||||
Array of plugins installed in the browser.
|
No Details | no | 1.0+ | 3.0+ | 7.0+ | 1.0+ |
|
||||||
Default language of the OS.
|
No Details | 4.0+ | no | no | no | no |
|
||||||
Specifies the value the browser uses for the user-agent header in http requests.
|
No Details | 3.0+ | 1.0+ | 2.0+ | 7.0+ | 1.0+ |
|
||||||
Preferred language of the user.
|
No Details | 4.0+ | no | no | no | no |
|
Functions
Method | Action | IE | Mozilla | Netscape | Opera | Safari | |||||
---|---|---|---|---|---|---|---|---|---|---|---|
javaEnabled() : Boolean
Specifies whether or not Java is supported and enabled by the browser.
|
Show Details | 4.0+ | 1.0+ | 3.0+ | 7.0+ | 1.0+ | |||||
Returns
|
|||||||||||
plugins.refresh([Boolean reload]) : Object
Makes newly installed plugins available to the web browser.
|
Show Details | no | 1.0+ | 3.0+ | no | no | |||||
Parameters
Returns
|
References
Availability
JavaScript 1.0|enhanced in JavaScript 1.1 and 1.2