Navigator 接口表示用户代理的状态和标识。 它允许脚本查询它和注册自己进行一些活动。

可以使用只读的 window.navigator 属性检索navigator对象。


不从NavigatorID (en-US), NavigatorLanguage (en-US), NavigatorOnLine (en-US), NavigatorGeolocation (en-US), NavigatorPlugins (en-US), NavigatorUserMedia, 和 NetworkInformation 中继承任何属性,但是实现了定义在这些对象中的如下属性。


筛选所有的 VRDisplay 对象,把其中所有VRDisplay.ispresenting (en-US)属性的值为true的对象以数组的形式返回。 
返回当前浏览器的内部“开发代号”名称。 不能保证此属性返回的值是正确的。
以 DOMString 的形式返回浏览器官方名称。 不能保证此属性返回的值是正确的。
DOMString 的形式返回浏览器版本。不能保证此属性返回的值是正确的。
返回一个 BatteryManager 对象,你可以用它来获取一些电池充电状态的信息。
当忽略 cookie 时返回 false,否则返回 true
返回一个 Geolocation 对象,据之可访问设备的地理位位置信息。
返回Boolean (en-US)表明浏览器是否支持Java。
Returns a LockManager (en-US) object which provides methods for requesting a new Lock (en-US) object and querying for an existing Lock (en-US) object
Returns a MediaCapabilities (en-US) object that can expose information about the decoding and encoding capabilities for a given format and output capabilities.
Returns the maximum number of simultaneous touch contact points are supported by the current device.
返回MimeTypeArray (en-US)数组用于列举浏览器所支持的MIME类型。
返回Boolean (en-US)来表明浏览器是否联网。
返回一个Permissions对象,该对象可用于查询和更新Permissions API涵盖的API的权限状态。
返回PluginArray (en-US)数组用于列举出浏览器安装的插件。
返回ServiceWorkerContainer 对象用于提供注册、删除、更新以及为了associated documentServiceWorker对象之间的通信。
Returns the singleton StorageManager object used for managing persistence permissions and estimating available storage on a site-by-site/app-by-app basis.


返回浏览器识别码。这一方法返回时间戳,例如,在Firefox 64发行版中返回"20181001000000"。.
返回 id 对象, 你能用 BrowserID 添加支持 到你的网址
Returns an Apps object you can use to install, manage, and control Open Web apps.
The navigator.mozAudioChannelManager object provides access to the mozAudioChannelManager interface, which is used to manage your Firefox OS device's audio channels, including setting what channel's volume to affect when the volume buttons are pressed inside a particular app.
Returns a notification object you can use to deliver notifications to the user from your web application.
The Object, returned by the navigator.mozSocial property, is available within the social media provider's panel to provide functionality it may need.
Returns the build number of the current browser (e.g., "20060909").
Returns an empty string. In Netscape 4.7x, returns "US & CA domestic policy" or "Export policy".
Returns a boolean indicating whether the browser is running in standalone mode. Available on Apple's iOS Safari only.
Returns a PointerLock object for the Mouse Lock API.


Doesn't inherit any method, but implements those defined in NavigatorID (en-US), NavigatorContentUtils, NavigatorUserMedia, and NavigatorStorageUtils.


Returns a promise that resolves to an array of VRDisplay objects representing any available VR devices connected to the computer.
After having prompted the user for permission, returns the audio or video stream associated to a camera or microphone on the local computer.
Allows web sites to register themselves as a possible handler for a given MIME type.
Allows web sites to register themselves as a possible handler for a given protocol.
Returns a Promise for a MediaKeySystemAccess object.
Used to asynchronously transfer a small amount of data using HTTP from the User Agent to a web server.
Invokes the native sharing mechanism of the current platform.
Returns false. JavaScript taint/untaint functions removed in JavaScript 1.2.
Causes vibration on devices with support for it. Does nothing if vibration support isn't available.


Lets code check to see if the document at a given URI is available without using the network.
Allows in-app payment.


规范 状态 备注
HTML Living Standard
the Navigator object
Living Standard


BCD tables only load in the browser