Navigator
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.
Instance Members
permissions: PermissionsReturns a Permissions object that can be used to query and update permission status of APIs covered by the Permissions API.
mimeTypes: MimeTypeArrayplugins: PluginArraydoNotTrack: StringReports 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.
maxTouchPoints: Intoscpu: StringReturns a string that represents the current operating system.
vendor: StringReturns the vendor name of the current browser (e.g., "Netscape6").
vendorSub: StringReturns the vendor version number (e.g. "6.1").
productSub: StringReturns the build number of the current browser (e.g., "20060909").
cookieEnabled: BoolReturns false if setting a cookie will be ignored and true otherwise.
buildID: StringReturns the build identifier of the browser (e.g., "2006090803").
mediaDevices: MediaDevicesReturns 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().
serviceWorker: ServiceWorkerContainerReturns a ServiceWorkerContainer object, which provides access to registration, removal, upgrade, and communication with the ServiceWorker objects for the associated document.
clipboard: ClipboardhardwareConcurrency: Intgeolocation: GeolocationReturns a Geolocation object allowing accessing the location of the device.
appCodeName: StringappName: StringappVersion: Stringplatform: StringuserAgent: Stringproduct: Stringlanguage: StringonLine: Boolstorage: StorageManager| Name | Type |
|---|---|
pattern |
Array<Int> |
| Returns |
|---|
| Bool |
javaEnabled(): Bool| Returns |
|---|
| Bool |
| Returns |
|---|
| Array<Gamepad> |
requestMIDIAccess(?options: Null<js.html.midi.MIDIOptions>): js.lib.Promise<js.html.midi.MIDIAccess>| Name | Type | Default |
|---|---|---|
options |
Null<js.html.midi.MIDIOptions> | (optional) |
| Returns |
|---|
| js.lib.Promise<js.html.midi.MIDIAccess> |
| Name | Type | Default |
|---|---|---|
url |
String | |
data |
Blob | (optional) |
| Returns |
|---|
| Bool |
requestMediaKeySystemAccess(keySystem: String, supportedConfigurations: Array<js.html.eme.MediaKeySystemConfiguration>): js.lib.Promise<js.html.eme.MediaKeySystemAccess>| Name | Type |
|---|---|
keySystem |
String |
supportedConfigurations |
Array<js.html.eme.MediaKeySystemConfiguration> |
| Returns |
|---|
| js.lib.Promise<js.html.eme.MediaKeySystemAccess> |
taintEnabled(): Bool| Returns |
|---|
| Bool |