class Navigator
package js.html
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.
Documentation Navigator by Mozilla Contributors, licensed under CC-BY-SA 2.5.
See also:
Variables
read onlydoNotTrack:String
Reports the value of the user's do-not-track preference. When this value is "yes", your web site or application should not track the user.
read onlygeolocation:Geolocation
Returns a Geolocation
object allowing accessing the location of the device.
read onlymediaDevices:MediaDevices
Returns a reference to a 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()
.
read onlypermissions:Permissions
Returns a Permissions
object that can be used to query and update permission status of APIs covered by the Permissions API.
read onlyserviceWorker:ServiceWorkerContainer
Returns a ServiceWorkerContainer
object, which provides access to registration, removal, upgrade, and communication with the ServiceWorker
objects for the associated document.
Methods
requestMediaKeySystemAccess(keySystem:String, supportedConfigurations:Array<MediaKeySystemConfiguration>):Promise<MediaKeySystemAccess>
sendBeacon(url:String, ?data:Blob):Bool
sendBeacon(url:String, ?data:ArrayBufferView):Bool
sendBeacon(url:String, ?data:ArrayBuffer):Bool
sendBeacon(url:String, ?data:FormData):Bool
sendBeacon(url:String, ?data:URLSearchParams):Bool
sendBeacon(url:String, ?data:String):Bool
Throws:
null | DOMError |
---|