Navigator object
Navigator object
The Navigator object contains information about the browser.
Note: There is no public standard applied to the navigator object, but all browsers support it.
Navigator Object Properties
| property | Description |
|---|---|
| appCodeName | Returns the code name of the browser. |
| appName | Returns the name of the browser. |
| appVersion | Returns the platform and version information of the browser. |
| cookieEnabled | Returns a boolean indicating whether cookies are enabled in the browser. |
| platform | Returns the operating system platform running the browser. |
| userAgent | Returns the value of the user-agent header sent by the client to the server. |
| geolocation | Returns the geolocation information of the browser. |
| language | Returns the language used by the browser. |
| onLine | Returns whether the browser is online; returns true if online, otherwise false. |
| product | Returns the engine (product) used by the browser. |
Navigator Object Methods
| Method | Description |
|---|---|
| javaEnabled() | Specifies whether Java is enabled in the browser. |
| taintEnabled() | Specifies whether the browser enables data tainting. |