Window Navigator
The Window Navigator Object
The navigator object contains information about the browser.
The navigator object is a property of the window object.
The navigator object is accessed with:
window.navigator or just navigator:
Examples
let url = window.navigator.language;
Try it Yourself »
let url = navigator.language;
Try it Yourself »
Navigator Object Properties
| Property | Description |
|---|---|
| appCodeName | Deprecated. All browsers returns Mozilla. |
| appName | Deprecated. All browsers returns Netscape. |
| appVersion | Deprecated. Most browsers returns 4.0 or 5.0 (). |
| cookieEnabled | Returns true if browser cookies are enabled |
| geolocation | Returns a geolocation object for the user's location |
| language | Returns browser language |
| onLine | Returns true if the browser is online |
| platform | Deprecated. Avoid using it. |
| product | Deprecated. All browsers return Geco. |
| userAgent | Returns browser user-agent header |
Navigator Object Methods
| Method | Description |
|---|---|
| javaEnabled() | Deprecated. All browsers return false. |
| taintEnabled() | Removed in JavaScript version 1.2 (1999). |