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:
Variables
read onlybattery:BatteryManager
Returns a BatteryManager
object you can use to get information about the battery charging status.
read onlycookieEnabled:Bool
Returns a boolean indicating whether cookies are enabled in the browser or not.
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 onlypermissions:Permissions
Returns a Permissions
object that can be used to query and update permission status of APIs covered by the Permissions API.
Methods
sendBeacon (url:String, ?data:EitherType<ArrayBufferView, EitherType<Blob, EitherType<String, FormData>>>):Bool
Throws:
null | DOMError |
---|