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 | Returns browser code name |
appName | Returns browser name |
appVersion | Returns browser version |
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 | Returns browser platform |
product | Returns browser engine name |
userAgent | Returns browser user-agent header |
Navigator Object Methods
Method | Description |
---|---|
javaEnabled() | Returns true if the browser has Java enabled |
taintEnabled() | Removed in JavaScript version 1.2 (1999). |