The Navigator interface represents the state and the identity of the user agent. It allows scripts to query it and to register themselves to carry on some activities.
A Navigator object can be retrieved using the read-only window.navigator property.
Doesn't inherit any properties, but implements those defined in NavigatorID, NavigatorLanguage, NavigatorOnLine, NavigatorContentUtils, NavigatorStorage, NavigatorStorageUtils, NavigatorConcurrentHardware, NavigatorPlugins, and NavigatorUserMedia.
Navigator.activeVRDisplays Read only
VRDisplay object that is currently presenting (VRDisplay.ispresenting is true).NavigatorID.appCodeName Read only
NavigatorID.appName Read only
DOMString with the official name of the browser. Do not rely on this property to return the correct value.NavigatorID.appVersion Read only
DOMString. Do not rely on this property to return the correct value.Navigator.battery Read only
BatteryManager object you can use to get information about the battery charging status.Navigator.connection Read only
NetworkInformation object containing information about the network connection of a device.Navigator.cookieEnabled Read only
Navigator.geolocation Read only
Geolocation object allowing accessing the location of the device.NavigatorConcurrentHardware.hardwareConcurrency Read only
NavigatorPlugins.javaEnabled Read only
Boolean flag indicating whether the host browser is Java-enabled or not.Navigator.keyboard Read only
Keyboard object which provides access to functions that retrieve keyboard layout maps and toggle capturing of key presses from the physical keyboard.NavigatorLanguage.language Read only
DOMString representing the preferred language of the user, usually the language of the browser UI. The null value is returned when this is unknown.NavigatorLanguage.languages Read only
DOMString representing the languages known to the user, by order of preference.Navigator.locks Read only
LockManager object which provides methods for requesting a new Lock object and querying for an existing Lock objectNavigator.mediaCapabilities Read only
MediaCapabilities object that can expose information about the decoding and encoding capabilities for a given format and output capabilities.Navigator.maxTouchPoints Read only
NavigatorPlugins.mimeTypes Read only
MimeTypeArray listing the MIME types supported by the browser.NavigatorOnLine.onLine Read only
Boolean indicating whether the browser is working online.Navigator.oscpuNavigator.permissions Read only
Permissions object that can be used to query and update permission status of APIs covered by the Permissions API.NavigatorID.platform Read only
NavigatorPlugins.plugins Read only
PluginArray listing the plugins installed in the browser.NavigatorID.product Read only
'Gecko', on any browser. This property is kept only for compatibility purpose.Navigator.serviceWorker Read only
ServiceWorkerContainer object, which provides access to registration, removal, upgrade, and communication with the ServiceWorker objects for the associated document.NavigatorStorage.storage Read only
StorageManager object used for managing persistance permissions and estimating available storage on a site-by-site/app-by-app basis.NavigatorID.userAgent Read only
Navigator.webdriver Read only
Navigator.buildID
20181001000000 in Firefox 64 onwards.Navigator.credentials
CredentialsContainer interface which exposes methods to request credentials and notify the user agent when interesting events occur such as successful sign in or sign out. Navigator.deviceMemory Read only
Navigator.doNotTrack
Navigator.mediaDevices
MediaDevices object which can then be used to get information about available media devices (MediaDevices.enumerateDevices()), find out what constrainable properties are supported for media on the user's computer and user agent (MediaDevices.getSupportedConstraints()), and to request access to media using MediaDevices.getUserMedia().Navigator.mozNotification Deprecated since Gecko 22 Navigator.webkitNotification
notification object you can use to deliver notifications to the user from your web application.Navigator.mozSocial
navigator.mozSocial property, is available within the social media provider's panel to provide functionality it may need.Navigator.presentation
Presentation API.Navigator.productSub
Navigator.securitypolicy
Navigator.standalone
Navigator.storageQuota Read only
StorageQuota interface which provides means to query and request storage usage and quota information.Navigator.vendor
Navigator.vendorSub
Navigator.webkitPointer
Doesn't inherit any method, but implements those defined in NavigatorID, NavigatorContentUtils, NavigatorUserMedia, and NavigatorStorageUtils.
Navigator.getVRDisplays()
VRDisplay objects representing any available VR devices connected to the computer.Navigator.getUserMedia()
Navigator.registerContentHandler() Obsolete since Gecko 59
Navigator.registerProtocolHandler()Navigator.requestMediaKeySystemAccess()
Promise for a MediaKeySystemAccess object.
Navigator.sendBeacon()
Navigator.share()
NavigatorID.taintEnabled() Deprecated since Gecko 1.7.8 Obsolete since Gecko 9.0
false. JavaScript taint/untaint functions removed in JavaScript 1.2.Navigator.vibrate() Firefox OS devices adds more non-standard methods. You can consult them on the Firefox OS Navigator extensions article.
Navigator.mozIsLocallyAvailable()
Navigator.mozPay()
| Specification | Status | Comment |
|---|---|---|
| HTML Living Standard The definition of 'the Navigator object' in that specification. | Living Standard |
| Desktop | ||||||
|---|---|---|---|---|---|---|
| Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | |
| Basic support | Yes | Yes | Yes | Yes | Yes | Yes |
activeVRDisplays
|
No
|
Yes | 55
|
No | No | No |
authentication |
67
|
No | No | No | ? | No |
battery
|
38 | ? | 16 — 50
|
No | No | No |
buildID
|
? | ? | 2 | ? | ? | ? |
clipboard |
66 | ? | 63 | ? | ? | ? |
connection
|
61 | ? | ? | No | ? | No |
cookieEnabled |
59 | Yes | 1
|
Yes | Yes | Yes |
credentials
|
51 | 18 | ? | ? | ? | ? |
deviceMemory
|
63 | ? | ? | ? | 50 | ? |
doNotTrack
|
23 | No
|
9
|
9 — 11
|
12 | 5.1 — 7
|
geolocation |
5 | Yes | 3.5 | 9 | 16
|
5 |
getBattery
|
39 | ? | 43 — 52
|
No | 25 | No |
getGamepads
|
35
|
Yes | 29 | No | 22
|
No |
getUserMedia
|
21
|
Yes | 17
|
No | 18
|
No |
getVRDisplays
|
No
|
Yes | 55
|
No | No | No |
keyboard
|
68 | No | No | No | 55 | No |
locks
|
69 | ? | ? | ? | 56 | ? |
maxTouchPoints |
35 | ? | 59
|
11
|
? | No |
mediaCapabilities
|
66 | No | 63 | No | 55 | No |
mediaDevices |
51 | Yes | 36 | Yes | No | No |
mediaSession
|
No | ? | ? | ? | No | ? |
mozIsLocallyAvailable
|
No | No | ? — 35 | No | No | No |
oscpu
|
No | ? | Yes | ? | ? | ? |
permissions
|
43 | ? | 46 | ? | ? | ? |
presentation |
Yes | ? | No | ? | ? | ? |
productSub
|
Yes
|
? | Yes | Yes
|
? | Yes
|
registerContentHandler
|
? | ? | 2 — 62 | ? | ? | ? |
registerProtocolHandler |
13
|
? | 3 | ? | 11.6 | ? |
requestMediaKeySystemAccess |
42
|
Yes | Yes
|
? | 29
|
? |
sendBeacon |
39
|
Yes | 31 | No | 26
|
11.1 |
serviceWorker |
40 | 17
|
44
|
No | 27 | 11.1 |
share
|
No | ? | No | No | No | No |
vendor |
1 | Yes | Yes | Yes | Yes | Yes |
vendorSub
|
Yes | ? | Yes | Yes | 15 | Yes |
vibrate |
32 | ? | 16
|
No | No | No |
webdriver
|
63 | ? | ? | ? | 50 | ? |
| Mobile | |||||||
|---|---|---|---|---|---|---|---|
| Android webview | Chrome for Android | Edge Mobile | Firefox for Android | Opera for Android | iOS Safari | Samsung Internet | |
| Basic support | Yes | Yes | Yes | Yes | Yes | Yes | Yes |
activeVRDisplays
|
Yes | Yes
|
No | 55 | No | No | ? |
authentication |
67
|
67
|
No | No | ? | No | No |
battery
|
? | 38 | ? | 16 — 50
|
No | No | ? |
buildID
|
? | ? | ? | Yes | ? | ? | ? |
clipboard |
66 | 66 | ? | 63 | ? | ? | ? |
connection
|
50 | 38 | ? | 14
|
37 | No | ? |
cookieEnabled |
59 | 59 | Yes | 4
|
Yes | Yes | ? |
credentials
|
51 | 51 | ? | ? | ? | ? | ? |
deviceMemory
|
63 | 63 | ? | ? | 50 | ? | ? |
doNotTrack
|
Yes | Yes | No
|
9
|
? | ? | ? |
geolocation |
Yes | Yes | Yes | 4 | 10.6 | Yes | ? |
getBattery
|
40 | 42 | ? | 43 — 52
|
25 | No | ? |
getGamepads
|
37
|
42 | Yes | No | No | No | ? |
getUserMedia
|
40
|
No | Yes | 24
|
12
|
No | No |
getVRDisplays
|
Yes | Yes
|
No | 55 | No | No | ? |
keyboard
|
No | No | No | No | No | No | No |
locks
|
69 | 69 | ? | ? | 56 | ? | ? |
maxTouchPoints |
37 | 35 | ? | 29
|
? | No | ? |
mediaCapabilities
|
66 | 66 | No | 63 | 55 | No | ? |
mediaDevices |
51 | 51 | Yes | 36 | No | No | ? |
mediaSession
|
No | 57 | ? | ? | No | ? | ? |
mozIsLocallyAvailable
|
No | No | No | ? — 35 | No | No | No |
oscpu
|
No | No | ? | Yes | ? | ? | ? |
permissions
|
43 | 43 | ? | 46 | ? | ? | ? |
presentation |
Yes | Yes | ? | No | ? | ? | ? |
productSub
|
? | Yes
|
? | Yes | ? | Yes
|
? |
registerContentHandler
|
? | ? | ? | ? | ? | ? | ? |
registerProtocolHandler |
? | ? | ? | 4 | ? | No | ? |
requestMediaKeySystemAccess |
43
|
42
|
Yes | Yes
|
29
|
? | ? |
sendBeacon |
40
|
42
|
Yes | 31 | 29
|
No | ? |
serviceWorker |
40 | 40 | ? | 44 | 27 | 11.1 | ? |
share
|
61 | 61 | ? | No | 48 | No | ? |
vendor |
Yes | Yes | Yes | Yes | Yes | Yes | Yes |
vendorSub
|
Yes | Yes | ? | Yes | 15 | Yes | ? |
vibrate |
4.4.3
|
32
|
? | 16
|
Yes
|
No | ? |
webdriver
|
? | 63 | ? | ? | 50 | ? | ? |
© 2005–2018 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/navigator