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.
Navigator object can be retrieved using the read-only
Doesn't inherit any properties, but implements those defined in
Navigator.connectionRead only '
NetworkInformationobject containing information about the network connection of a device.
CredentialsContainerinterface which exposes methods to request credentials and notify the user agent when interesting events occur such as successful sign in or sign out.
Navigator.deviceMemoryRead only '
Navigator.doNotTrackRead only '
Geolocationobject allowing accessing the location of the device.
Booleanflag indicating whether the host browser is Java-enabled or not.
Navigator.keyboardRead only '
Keyboardobject which provides access to functions that retrieve keyboard layout maps and toggle capturing of key presses from the physical keyboard.
DOMStringrepresenting the preferred language of the user, usually the language of the browser UI. The
nullvalue is returned when this is unknown.
NavigatorLanguage.languagesRead only '
DOMStringrepresenting the languages known to the user, by order of preference.
Navigator.locksRead only '
LockManagerobject which provides methods for requesting a new
Lockobject and querying for an existing
Navigator.mediaCapabilitiesRead only '
MediaCapabilitiesobject that can expose information about the decoding and encoding capabilities for a given format and output capabilities.
MediaDevicesobject 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
Navigator.mediaSessionRead only '
MediaSessionobject which can be used to provide metadata that can be used by the browser to present information about the currently-playing media to the user, such as in a global media controls UI.
MimeTypeArraylisting the MIME types supported by the browser.
Booleanindicating whether the browser is working online.
Navigator.permissionsRead only '
Permissionsobject that can be used to query and update permission status of APIs covered by the Permissions API.
PluginArraylisting the plugins installed in the browser.
Navigator.presentationRead only '
ServiceWorkerContainerobject, which provides access to registration, removal, upgrade, and communication with the
ServiceWorkerobjects for the associated document.
StorageManagerobject used for managing persistence permissions and estimating available storage on a site-by-site/app-by-app basis.
Navigator.webdriverRead only '
Navigator.xrRead only '
XRobject, which represents the entry point into the WebXR API.
20181001000000in Firefox 64 onwards.
Navigator.contactsRead only '
ContactsManagerinterface which allows users to select entries from their contact list and share limited details of the selected entries with a website or application.
Navigator.wakeLockRead only '
WakeLockinterface you can use to request screen wake locks and prevent screen from dimming, turning off, or showing a screen saver.
NavigatorID.appCodeNameRead only '
NavigatorID.appNameRead only '
DOMStringwith the official name of the browser. Do not rely on this property to return the correct value.
NavigatorID.appVersionRead only '
DOMString. Do not rely on this property to return the correct value.
Navigator.activeVRDisplaysRead only '
VRDisplayobject that is currently presenting (
Navigator.batteryRead only '
BatteryManagerobject you can use to get information about the battery charging status.
Navigator.oscpuRead only '
NavigatorID.platformRead only '
NavigatorID.productRead only '
'Gecko', on any browser. This property is kept only for compatibility purpose.
Navigator.productSubRead only '
Navigator.storageQuotaRead only '
StorageQuotainterface which provides means to query and request storage usage and quota information.
Navigator.vendorSubRead only '
trueif a call to
Promisefor a MediaKeySystemAccess object.
VRDisplayobjects representing any available VR devices connected to the computer.
|HTML Living StandardThe definition of 'the Navigator object' in that specification.||Living Standard|
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.