NavigatorObject
Navigator Object
The Navigator object contains information about the browser.
Note:There is no public standard that applies 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 value 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 from 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 |