Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface BackgroundWindow

BackgroundWindow interface with all of its attributes.

Hierarchy

  • Window
    • BackgroundWindow

Index

Properties

Methods

Properties

Blob

Blob: object

Type declaration

  • constructor: function
    • new __type(blobParts?: BlobPart[], options?: BlobPropertyBag): Blob
    • Parameters

      • Optional blobParts: BlobPart[]
      • Optional options: BlobPropertyBag

      Returns Blob

  • prototype: Blob

PERSISTENT

PERSISTENT: number

Used for storage that should not be removed by the user agent without application or user permission.

TEMPORARY

TEMPORARY: number

Used for storage with no guarantee of persistence.

URL

URL: object

Type declaration

  • constructor: function
    • new __type(url: string, base?: string | URL): URL
    • Parameters

      • url: string
      • Optional base: string | URL

      Returns URL

  • prototype: URL
  • createObjectURL: function
    • createObjectURL(object: any): string
    • Parameters

      • object: any

      Returns string

  • revokeObjectURL: function
    • revokeObjectURL(url: string): void
    • Parameters

      • url: string

      Returns void

URLSearchParams

URLSearchParams: object

Type declaration

  • constructor: function
    • new __type(init?: string[][] | Record<string, string> | string | URLSearchParams): URLSearchParams
    • Parameters

      • Optional init: string[][] | Record<string, string> | string | URLSearchParams

      Returns URLSearchParams

  • prototype: URLSearchParams

Window

Window: object

Type declaration

  • constructor: function
    • new __type(): Window
    • Returns Window

  • prototype: Window

applicationCache

applicationCache: ApplicationCache

backgroundGrobberClient

backgroundGrobberClient: GrobberClient

caches

caches: CacheStorage

chrome

chrome: chrome

clientInformation

clientInformation: Navigator

closed

closed: boolean

console

console: Console

crypto

crypto: Crypto

customElements

customElements: CustomElementRegistry

defaultStatus

defaultStatus: string

devicePixelRatio

devicePixelRatio: number

doNotTrack

doNotTrack: string

document

document: Document

event

event: Event | undefined

external

external: External
deprecated

frameElement

frameElement: Element

frames

frames: Window

hasNewEpisode$

hasNewEpisode$: Subject<NewEpisodeEvent>

hasNewVersion$

hasNewVersion$: BehaviorSubject<boolean>

history

history: History

indexedDB

indexedDB: IDBFactory

innerHeight

innerHeight: number

innerWidth

innerWidth: number

isSecureContext

isSecureContext: boolean

length

length: number

localStorage

localStorage: Storage

location

location: Location

locationbar

locationbar: BarProp

menubar

menubar: BarProp

msContentScript

msContentScript: ExtensionScriptApis

name

name: string

navigator

navigator: Navigator

offscreenBuffering

offscreenBuffering: string | boolean

onabort

onabort: function | null

Fires when the user aborts the download.

param

The event.

onafterprint

onafterprint: function | null

onanimationcancel

onanimationcancel: function | null

onanimationend

onanimationend: function | null

onanimationiteration

onanimationiteration: function | null

onanimationstart

onanimationstart: function | null

onauxclick

onauxclick: function | null

onbeforeprint

onbeforeprint: function | null

onbeforeunload

onbeforeunload: function | null

onblur

onblur: function | null

Fires when the object loses the input focus.

param

The focus event.

oncancel

oncancel: function | null

oncanplay

oncanplay: function | null

Occurs when playback is possible, but would require further buffering.

param

The event.

oncanplaythrough

oncanplaythrough: function | null

onchange

onchange: function | null

Fires when the contents of the object or selection have changed.

param

The event.

onclick

onclick: function | null

Fires when the user clicks the left mouse button on the object

param

The mouse event.

onclose

onclose: function | null

oncompassneedscalibration

oncompassneedscalibration: function | null

oncontextmenu

oncontextmenu: function | null

Fires when the user clicks the right mouse button in the client area, opening the context menu.

param

The mouse event.

oncuechange

oncuechange: function | null

ondblclick

ondblclick: function | null

Fires when the user double-clicks the object.

param

The mouse event.

ondevicelight

ondevicelight: function | null

ondevicemotion

ondevicemotion: function | null

ondeviceorientation

ondeviceorientation: function | null

ondrag

ondrag: function | null

Fires on the source object continuously during a drag operation.

param

The event.

ondragend

ondragend: function | null

Fires on the source object when the user releases the mouse at the close of a drag operation.

param

The event.

ondragenter

ondragenter: function | null

Fires on the target element when the user drags the object to a valid drop target.

param

The drag event.

ondragexit

ondragexit: function | null

ondragleave

ondragleave: function | null

Fires on the target object when the user moves the mouse out of a valid drop target during a drag operation.

param

The drag event.

ondragover

ondragover: function | null

Fires on the target element continuously while the user drags the object over a valid drop target.

param

The event.

ondragstart

ondragstart: function | null

Fires on the source object when the user starts to drag a text selection or selected object.

param

The event.

ondrop

ondrop: function | null

ondurationchange

ondurationchange: function | null

Occurs when the duration attribute is updated.

param

The event.

onemptied

onemptied: function | null

Occurs when the media element is reset to its initial state.

param

The event.

onended

onended: function | null

Occurs when the end of playback is reached.

param

The event

onerror

onerror: ErrorEventHandler

Fires when an error occurs during object loading.

param

The event.

onfocus

onfocus: function | null

Fires when the object receives focus.

param

The event.

ongotpointercapture

ongotpointercapture: function | null

onhashchange

onhashchange: function | null

oninput

oninput: function | null

oninvalid

oninvalid: function | null

onkeydown

onkeydown: function | null

Fires when the user presses a key.

param

The keyboard event

onkeypress

onkeypress: function | null

Fires when the user presses an alphanumeric key.

param

The event.

onkeyup

onkeyup: function | null

Fires when the user releases a key.

param

The keyboard event

onlanguagechange

onlanguagechange: function | null

onload

onload: function | null

Fires immediately after the browser loads the object.

param

The event.

onloadeddata

onloadeddata: function | null

Occurs when media data is loaded at the current playback position.

param

The event.

onloadedmetadata

onloadedmetadata: function | null

Occurs when the duration and dimensions of the media have been determined.

param

The event.

onloadend

onloadend: function | null

onloadstart

onloadstart: function | null

Occurs when Internet Explorer begins looking for media data.

param

The event.

onlostpointercapture

onlostpointercapture: function | null

onmessage

onmessage: function | null

onmessageerror

onmessageerror: function | null

onmousedown

onmousedown: function | null

Fires when the user clicks the object with either mouse button.

param

The mouse event.

onmouseenter

onmouseenter: function | null

onmouseleave

onmouseleave: function | null

onmousemove

onmousemove: function | null

Fires when the user moves the mouse over the object.

param

The mouse event.

onmouseout

onmouseout: function | null

Fires when the user moves the mouse pointer outside the boundaries of the object.

param

The mouse event.

onmouseover

onmouseover: function | null

Fires when the user moves the mouse pointer into the object.

param

The mouse event.

onmouseup

onmouseup: function | null

Fires when the user releases a mouse button while the mouse is over the object.

param

The mouse event.

onmousewheel

onmousewheel: function | null

onmsgesturechange

onmsgesturechange: function | null

onmsgesturedoubletap

onmsgesturedoubletap: function | null

onmsgestureend

onmsgestureend: function | null

onmsgesturehold

onmsgesturehold: function | null

onmsgesturestart

onmsgesturestart: function | null

onmsgesturetap

onmsgesturetap: function | null

onmsinertiastart

onmsinertiastart: function | null

onmspointercancel

onmspointercancel: function | null

onmspointerdown

onmspointerdown: function | null

onmspointerenter

onmspointerenter: function | null

onmspointerleave

onmspointerleave: function | null

onmspointermove

onmspointermove: function | null

onmspointerout

onmspointerout: function | null

onmspointerover

onmspointerover: function | null

onmspointerup

onmspointerup: function | null

onoffline

onoffline: function | null

ononline

ononline: function | null

onorientationchange

onorientationchange: function | null
deprecated

onpagehide

onpagehide: function | null

onpageshow

onpageshow: function | null

onpause

onpause: function | null

Occurs when playback is paused.

param

The event.

onplay

onplay: function | null

Occurs when the play method is requested.

param

The event.

onplaying

onplaying: function | null

Occurs when the audio or video has started playing.

param

The event.

onpointercancel

onpointercancel: function | null

onpointerdown

onpointerdown: function | null

onpointerenter

onpointerenter: function | null

onpointerleave

onpointerleave: function | null

onpointermove

onpointermove: function | null

onpointerout

onpointerout: function | null

onpointerover

onpointerover: function | null

onpointerup

onpointerup: function | null

onpopstate

onpopstate: function | null

onprogress

onprogress: function | null

Occurs to indicate progress while downloading media data.

param

The event.

onratechange

onratechange: function | null

Occurs when the playback rate is increased or decreased.

param

The event.

onreadystatechange

onreadystatechange: function | null

onrejectionhandled

onrejectionhandled: function | null

onreset

onreset: function | null

Fires when the user resets a form.

param

The event.

onresize

onresize: function | null

onscroll

onscroll: function | null

Fires when the user repositions the scroll box in the scroll bar on the object.

param

The event.

onsecuritypolicyviolation

onsecuritypolicyviolation: function | null

onseeked

onseeked: function | null

Occurs when the seek operation ends.

param

The event.

onseeking

onseeking: function | null

Occurs when the current playback position is moved.

param

The event.

onselect

onselect: function | null

Fires when the current selection changes.

param

The event.

onstalled

onstalled: function | null

Occurs when the download has stopped.

param

The event.

onstorage

onstorage: function | null

onsubmit

onsubmit: function | null

onsuspend

onsuspend: function | null

Occurs if the load operation has been intentionally halted.

param

The event.

ontimeupdate

ontimeupdate: function | null

Occurs to indicate the current playback position.

param

The event.

ontoggle

ontoggle: function | null

ontouchcancel

ontouchcancel: function | null

ontouchend

ontouchend: function | null

ontouchmove

ontouchmove: function | null

ontouchstart

ontouchstart: function | null

ontransitioncancel

ontransitioncancel: function | null

ontransitionend

ontransitionend: function | null

ontransitionrun

ontransitionrun: function | null

ontransitionstart

ontransitionstart: function | null

onunhandledrejection

onunhandledrejection: function | null

onunload

onunload: function | null

onvolumechange

onvolumechange: function | null

Occurs when the volume is changed, or playback is muted or unmuted.

param

The event.

onvrdisplayactivate

onvrdisplayactivate: function | null

onvrdisplayblur

onvrdisplayblur: function | null

onvrdisplayconnect

onvrdisplayconnect: function | null

onvrdisplaydeactivate

onvrdisplaydeactivate: function | null

onvrdisplaydisconnect

onvrdisplaydisconnect: function | null

onvrdisplayfocus

onvrdisplayfocus: function | null

onvrdisplaypointerrestricted

onvrdisplaypointerrestricted: function | null

onvrdisplaypointerunrestricted

onvrdisplaypointerunrestricted: function | null

onvrdisplaypresentchange

onvrdisplaypresentchange: function | null

onwaiting

onwaiting: function | null

Occurs when playback stops because the next frame of a video resource is not available.

param

The event.

onwheel

onwheel: function | null

opener

opener: any

orientation

orientation: string | number
deprecated

origin

origin: string

outerHeight

outerHeight: number

outerWidth

outerWidth: number

pageXOffset

pageXOffset: number

pageYOffset

pageYOffset: number

parent

parent: Window

performance

performance: Performance

personalbar

personalbar: BarProp

screen

screen: Screen

screenLeft

screenLeft: number

screenTop

screenTop: number

screenX

screenX: number

screenY

screenY: number

scrollX

scrollX: number

scrollY

scrollY: number

scrollbars

scrollbars: BarProp

self

self: Window

sessionStorage

sessionStorage: Storage

speechSynthesis

speechSynthesis: SpeechSynthesis

status

status: string

statusbar

statusbar: BarProp

styleMedia

styleMedia: StyleMedia

toolbar

toolbar: BarProp

top

top: Window

window

window: Window

Methods

addEventListener

  • addEventListener<K>(type: K, listener: function, options?: boolean | AddEventListenerOptions): void
  • addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void
  • Type parameters

    • K: keyof WindowEventMap

    Parameters

    • type: K
    • listener: function
        • (this: Window, ev: WindowEventMap[K]): any
        • Parameters

          • this: Window
          • ev: WindowEventMap[K]

          Returns any

    • Optional options: boolean | AddEventListenerOptions

    Returns void

  • Parameters

    • type: string
    • listener: EventListenerOrEventListenerObject
    • Optional options: boolean | AddEventListenerOptions

    Returns void

alert

  • alert(message?: any): void
  • Parameters

    • Optional message: any

    Returns void

atob

  • atob(encodedString: string): string
  • Parameters

    • encodedString: string

    Returns string

blur

  • blur(): void
  • Returns void

btoa

  • btoa(rawString: string): string
  • Parameters

    • rawString: string

    Returns string

cancelAnimationFrame

  • cancelAnimationFrame(handle: number): void
  • Parameters

    • handle: number

    Returns void

captureEvents

  • captureEvents(): void
  • deprecated

    Returns void

clearInterval

  • clearInterval(handle?: undefined | number): void
  • Parameters

    • Optional handle: undefined | number

    Returns void

clearTimeout

  • clearTimeout(handle?: undefined | number): void
  • Parameters

    • Optional handle: undefined | number

    Returns void

close

  • close(): void
  • Returns void

confirm

  • confirm(message?: undefined | string): boolean
  • Parameters

    • Optional message: undefined | string

    Returns boolean

createImageBitmap

  • createImageBitmap(image: ImageBitmapSource): Promise<ImageBitmap>
  • createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number): Promise<ImageBitmap>
  • Parameters

    • image: ImageBitmapSource

    Returns Promise<ImageBitmap>

  • Parameters

    • image: ImageBitmapSource
    • sx: number
    • sy: number
    • sw: number
    • sh: number

    Returns Promise<ImageBitmap>

departFocus

  • departFocus(navigationReason: NavigationReason, origin: FocusNavigationOrigin): void
  • Parameters

    • navigationReason: NavigationReason
    • origin: FocusNavigationOrigin

    Returns void

dispatchEvent

  • dispatchEvent(event: Event): boolean
  • Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.

    Parameters

    • event: Event

    Returns boolean

fetch

  • fetch(input: RequestInfo, init?: RequestInit): Promise<Response>
  • Parameters

    • input: RequestInfo
    • Optional init: RequestInit

    Returns Promise<Response>

focus

  • focus(): void
  • Returns void

getComputedStyle

  • getComputedStyle(elt: Element, pseudoElt?: string | null): CSSStyleDeclaration
  • Parameters

    • elt: Element
    • Optional pseudoElt: string | null

    Returns CSSStyleDeclaration

getMatchedCSSRules

  • getMatchedCSSRules(elt: Element, pseudoElt?: string | null): CSSRuleList
  • Parameters

    • elt: Element
    • Optional pseudoElt: string | null

    Returns CSSRuleList

getSelection

  • getSelection(): Selection
  • Returns Selection

matchMedia

  • matchMedia(query: string): MediaQueryList
  • Parameters

    • query: string

    Returns MediaQueryList

moveBy

  • moveBy(x: number, y: number): void
  • Parameters

    • x: number
    • y: number

    Returns void

moveTo

  • moveTo(x: number, y: number): void
  • Parameters

    • x: number
    • y: number

    Returns void

msWriteProfilerMark

  • msWriteProfilerMark(profilerMarkName: string): void
  • Parameters

    • profilerMarkName: string

    Returns void

open

  • open(url?: undefined | string, target?: undefined | string, features?: undefined | string, replace?: undefined | false | true): Window | null
  • Parameters

    • Optional url: undefined | string
    • Optional target: undefined | string
    • Optional features: undefined | string
    • Optional replace: undefined | false | true

    Returns Window | null

postMessage

  • postMessage(message: any, targetOrigin: string, transfer?: Transferable[]): void
  • Parameters

    • message: any
    • targetOrigin: string
    • Optional transfer: Transferable[]

    Returns void

print

  • print(): void
  • Returns void

prompt

  • prompt(message?: undefined | string, _default?: undefined | string): string | null
  • Parameters

    • Optional message: undefined | string
    • Optional _default: undefined | string

    Returns string | null

queueMicrotask

  • queueMicrotask(callback: Function): void
  • Parameters

    • callback: Function

    Returns void

releaseEvents

  • releaseEvents(): void
  • deprecated

    Returns void

removeEventListener

  • removeEventListener<K>(type: K, listener: function, options?: boolean | EventListenerOptions): void
  • removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void
  • Type parameters

    • K: keyof WindowEventMap

    Parameters

    • type: K
    • listener: function
        • (this: Window, ev: WindowEventMap[K]): any
        • Parameters

          • this: Window
          • ev: WindowEventMap[K]

          Returns any

    • Optional options: boolean | EventListenerOptions

    Returns void

  • Parameters

    • type: string
    • listener: EventListenerOrEventListenerObject
    • Optional options: boolean | EventListenerOptions

    Returns void

requestAnimationFrame

  • requestAnimationFrame(callback: FrameRequestCallback): number
  • Parameters

    • callback: FrameRequestCallback

    Returns number

requestFileSystem

  • requestFileSystem(type: number, size: number, successCallback: FileSystemCallback, errorCallback?: ErrorCallback): void
  • Requests a filesystem in which to store application data.

    Parameters

    • type: number

      Whether the filesystem requested should be persistent, as defined above. Use one of TEMPORARY or PERSISTENT.

    • size: number

      This is an indicator of how much storage space, in bytes, the application expects to need.

    • successCallback: FileSystemCallback

      The callback that is called when the user agent provides a filesystem.

    • Optional errorCallback: ErrorCallback

      A callback that is called when errors happen, or when the request to obtain the filesystem is denied.

    Returns void

requestFileSystemSync

  • requestFileSystemSync(type: number, size: number): FileSystemSync
  • Requests a filesystem in which to store application data.

    Parameters

    • type: number

      Whether the filesystem requested should be persistent, as defined above. Use one of TEMPORARY or PERSISTENT.

    • size: number

      This is an indicator of how much storage space, in bytes, the application expects to need.

    Returns FileSystemSync

resizeBy

  • resizeBy(x: number, y: number): void
  • Parameters

    • x: number
    • y: number

    Returns void

resizeTo

  • resizeTo(x: number, y: number): void
  • Parameters

    • x: number
    • y: number

    Returns void

resolveLocalFileSystemSyncURL

  • resolveLocalFileSystemSyncURL(url: string): EntrySync
  • Allows the user to look up the Entry for a file or directory referred to by a local URL.

    Parameters

    • url: string

      A URL referring to a local file in a filesystem accessable via this API.

    Returns EntrySync

resolveLocalFileSystemURL

  • resolveLocalFileSystemURL(url: string, successCallback: EntryCallback, errorCallback?: ErrorCallback): void
  • Allows the user to look up the Entry for a file or directory referred to by a local URL.

    Parameters

    • url: string

      A URL referring to a local file in a filesystem accessable via this API.

    • successCallback: EntryCallback

      A callback that is called to report the Entry to which the supplied URL refers.

    • Optional errorCallback: ErrorCallback

      A callback that is called when errors happen, or when the request to obtain the Entry is denied.

    Returns void

scroll

  • scroll(options?: ScrollToOptions): void
  • scroll(x: number, y: number): void
  • Parameters

    • Optional options: ScrollToOptions

    Returns void

  • Parameters

    • x: number
    • y: number

    Returns void

scrollBy

  • scrollBy(options?: ScrollToOptions): void
  • scrollBy(x: number, y: number): void
  • Parameters

    • Optional options: ScrollToOptions

    Returns void

  • Parameters

    • x: number
    • y: number

    Returns void

scrollTo

  • scrollTo(options?: ScrollToOptions): void
  • scrollTo(x: number, y: number): void
  • Parameters

    • Optional options: ScrollToOptions

    Returns void

  • Parameters

    • x: number
    • y: number

    Returns void

setInterval

  • setInterval(handler: TimerHandler, timeout?: undefined | number, ...arguments: any[]): number
  • Parameters

    • handler: TimerHandler
    • Optional timeout: undefined | number
    • Rest ...arguments: any[]

    Returns number

setTimeout

  • setTimeout(handler: TimerHandler, timeout?: undefined | number, ...arguments: any[]): number
  • Parameters

    • handler: TimerHandler
    • Optional timeout: undefined | number
    • Rest ...arguments: any[]

    Returns number

stop

  • stop(): void
  • Returns void

webkitCancelAnimationFrame

  • webkitCancelAnimationFrame(handle: number): void
  • Parameters

    • handle: number

    Returns void

webkitConvertPointFromNodeToPage

  • webkitConvertPointFromNodeToPage(node: Node, pt: WebKitPoint): WebKitPoint
  • Parameters

    • node: Node
    • pt: WebKitPoint

    Returns WebKitPoint

webkitConvertPointFromPageToNode

  • webkitConvertPointFromPageToNode(node: Node, pt: WebKitPoint): WebKitPoint
  • Parameters

    • node: Node
    • pt: WebKitPoint

    Returns WebKitPoint

webkitRequestAnimationFrame

  • webkitRequestAnimationFrame(callback: FrameRequestCallback): number
  • Parameters

    • callback: FrameRequestCallback

    Returns number

webkitRequestFileSystem

  • webkitRequestFileSystem(type: number, size: number, successCallback: FileSystemCallback, errorCallback?: ErrorCallback): void
  • see requestFileSystem.

    Parameters

    • type: number
    • size: number
    • successCallback: FileSystemCallback
    • Optional errorCallback: ErrorCallback

    Returns void

webkitRequestFileSystemSync

  • webkitRequestFileSystemSync(type: number, size: number): FileSystemSync
  • see requestFileSystemSync

    Parameters

    • type: number
    • size: number

    Returns FileSystemSync

Generated using TypeDoc