Options
All
  • Public
  • Public/Protected
  • All
Menu

The state and the identity of the user agent. It allows scripts to query it and to register themselves to carry on some activities.

Hierarchy

Index

Properties

appCodeName: string
deprecated
appName: string
deprecated
appVersion: string
deprecated
clipboard: internal.Clipboard

Available only in secure contexts.

cookieEnabled: boolean

Available only in secure contexts.

doNotTrack: null | string
geolocation: internal.Geolocation
hardwareConcurrency: number
language: string
languages: readonly string[]
maxTouchPoints: number
mediaCapabilities: internal.MediaCapabilities
mediaDevices: internal.MediaDevices

Available only in secure contexts.

mediaSession: internal.MediaSession
deprecated
onLine: boolean
pdfViewerEnabled: boolean
permissions: internal.Permissions
platform: string
deprecated
deprecated
product: string
deprecated
productSub: string
deprecated

Available only in secure contexts.

userAgent: string
vendor: string
deprecated
vendorSub: string
deprecated
webdriver: boolean

Methods

  • Available only in secure contexts.

    Parameters

    Returns boolean

  • Returns (null | internal.Gamepad)[]

  • javaEnabled(): boolean
  • registerProtocolHandler(scheme: string, url: string | URL): void
  • sendBeacon(url: string | URL, data?: null | BodyInit): boolean
  • Parameters

    • url: string | URL
    • Optional data: null | BodyInit

    Returns boolean

  • Available only in secure contexts.

    Parameters

    Returns Promise<void>

  • Parameters

    Returns boolean

Generated using TypeDoc