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: Permissions
Returns a Permissions
object that can be used to query and update permission status of APIs covered by the Permissions API.
mimeTypes: MimeTypeArray
plugins: PluginArray
doNotTrack: 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.
maxTouchPoints: Int
oscpu: String
Returns a string that represents the current operating system.
vendor: String
Returns the vendor name of the current browser (e.g., "Netscape6").
vendorSub: String
Returns the vendor version number (e.g. "6.1").
productSub: String
Returns the build number of the current browser (e.g., "20060909").
cookieEnabled: Bool
Returns false if setting a cookie will be ignored and true otherwise.
buildID: String
Returns the build identifier of the browser (e.g., "2006090803").
mediaDevices: 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()
.
serviceWorker: ServiceWorkerContainer
Returns a ServiceWorkerContainer
object, which provides access to registration, removal, upgrade, and communication with the ServiceWorker
objects for the associated document.
clipboard: Clipboard
hardwareConcurrency: Int
geolocation: Geolocation
Returns a Geolocation
object allowing accessing the location of the device.
appCodeName: String
appName: String
appVersion: String
platform: String
userAgent: String
product: String
language: String
onLine: Bool
storage: 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 |