A window containing a DOM document; the document property points to the DOM document loaded in that window.

Hierarchy

  • EventTarget
  • AnimationFrameProvider
  • GlobalEventHandlers
  • WindowEventHandlers
  • WindowLocalStorage
  • WindowOrWorkerGlobalScope
  • WindowSessionStorage
  • SharedWindow
    • Window

Indexable

[index: number]: Window

Properties

_scheduledLayoutDown? _window active addHeader atTop atTopMost borderSize bordered bounds builtInMenu caches canMaximize canMinimize canShow clientHeight clientInformation clientWidth closed crossOriginIsolated crypto customElements devToolsUrl devicePixelRatio doNotCheckLess? dockAlign dockPos document event event_dragfinished event_focusedcontrol event_layoutchange external fadeTime flat forceClose frameElement frames headerClass history inData indexedDB innerHeight innerWidth inspectElementSupported isMainWindow isMenu isModal isSecureContext layoutLocked layoutUpdateNeeded? length localStorage locationbar magnetToScreen magnetToWindows maximized menuJSON menubar minimized modalResult mouseScreenX? mouseScreenY? mouseTarget? mouseX? mouseY? moveable name navigator onabort onafterprint onanimationcancel onanimationend onanimationiteration onanimationstart onauxclick onbeforeinput onbeforeprint onbeforeunload onblur oncancel oncanplay oncanplaythrough onchange onclick onclose oncontextmenu oncopy oncuechange oncut ondblclick ondevicemotion ondeviceorientation ondrag ondragend ondragenter ondragleave ondragover ondragstart ondrop ondurationchange onemptied onended onerror onfocus onformdata ongamepadconnected ongamepaddisconnected ongotpointercapture onhashchange oninput oninvalid onkeydown onkeypress onkeyup onlanguagechange onload onloadeddata onloadedmetadata onloadstart onlostpointercapture onmessage onmessageerror onmousedown onmouseenter onmouseleave onmousemove onmouseout onmouseover onmouseup onoffline ononline onorientationchange onpagehide onpageshow onpaste onpause onplay onplaying onpointercancel onpointerdown onpointerenter onpointerleave onpointermove onpointerout onpointerover onpointerup onpopstate onprogress onratechange onrejectionhandled onreset onresize onscroll onsecuritypolicyviolation onseeked onseeking onselect onselectionchange onselectstart onslotchange onstalled onstorage onsubmit onsuspend ontimeupdate ontoggle ontouchcancel? ontouchend? ontouchmove? ontouchstart? ontransitioncancel ontransitionend ontransitionrun ontransitionstart onunhandledrejection onunload onvolumechange onwaiting onwebkitanimationend onwebkitanimationiteration onwebkitanimationstart onwebkittransitionend onwheel opacity opener orientation origin outData outerHeight outerWidth pageXOffset pageYOffset parent performance personalbar popupMenuWindows posSaveName reloadInProgress resizeable rightClickOnImage? screen screenLeft screenTop screenX screenY scrollX scrollY scrollbars self sessionStorage shape shapeColor showAsVideoPlayer speechSynthesis status statusInfo statusbar systemDevicePixelRatio textZoomRatio thisWindow title toolWindow toolbar top url visible visualViewport window windowIsLoaded

Accessors

Methods

Properties

_scheduledLayoutDown?: boolean

Undocumented

_window: any

Undocumented

active: boolean

Gets active state of the window

addHeader: boolean

Undocumented

atTop: boolean

Gets/Sets window at top

atTopMost: boolean

Gets/Sets window at most top (over all windows)

borderSize: number

Undocumented

bordered: boolean

Gets/Sets border of the window

bounds: Bounds

Get Bounds class of the window

builtInMenu: boolean

Gets bool value whether menu can be built in window (Windows system) or need to be created outside of window (OSX)

caches: CacheStorage

Available only in secure contexts.

canMaximize: boolean

Window can be maximized

canMinimize: boolean

Window can be minimized

canShow: boolean

Undocumented

clientHeight: number

Gets/Sets window's client height

clientInformation: Navigator

Deprecated

This is a legacy alias of navigator.

clientWidth: number

Gets/Sets window's client width

closed: boolean

Returns true if the window has been closed, false otherwise.

crossOriginIsolated: boolean

Undocumented

crypto: Crypto

Undocumented

customElements: CustomElementRegistry

Defines a new custom element, mapping the given name to the given constructor as an autonomous custom element.

devToolsUrl: string

Undocumented

devicePixelRatio: number

Undocumented

doNotCheckLess?: boolean

Undocumented

dockAlign: string

Gets align of the docked window. Available values are 'begin', 'middle', 'end'.

dockPos: string

Gets position of the window where to dock by default. Available values are 'top', 'bottom', 'left', 'right'.

document: Document

Undocumented

event: Event

Deprecated

event_dragfinished: ((e) => any)

Type declaration

    • (e): any
    • Undocumented

      Parameters

      Returns any

event_focusedcontrol: ((e) => any)

Type declaration

    • (e): any
    • Undocumented

      Parameters

      • e: CustomEvent<any>

      Returns any

event_layoutchange: ((e) => any)

Type declaration

    • (e): any
    • Undocumented

      Parameters

      • e: CustomEvent<any>

      Returns any

external: External

Deprecated

fadeTime: number

Gets/Sets fade in-out time of the window in ms.

flat: boolean

Gets/Sets window style to flat. This style is used for notifications dialogs or maximized video window.

forceClose: boolean

Undocumented

frameElement: Element

Undocumented

frames: Window

Undocumented

headerClass: any

Undocumented

history: History

Undocumented

inData: string

Undocumented

indexedDB: IDBFactory

Undocumented

innerHeight: number

Undocumented

innerWidth: number

Undocumented

inspectElementSupported: boolean

Undocumented

isMainWindow: boolean

Undocumented

isMenu: boolean

Undocumented

isModal: boolean

Undocumented

isSecureContext: boolean

Undocumented

layoutLocked: number

Undocumented

layoutUpdateNeeded?: boolean

Undocumented

length: number

Undocumented

localStorage: Storage

Undocumented

locationbar: BarProp

Returns true if the location bar is visible; otherwise, returns false.

magnetToScreen: boolean

Undocumented

magnetToWindows: boolean

Undocumented

maximized: boolean

Gets maximized state of the window

menuJSON: string

Undocumented

menubar: BarProp

Returns true if the menu bar is visible; otherwise, returns false.

minimized: boolean

Gets minimized state of the window

modalResult: number

Gets/Sets result of modal window (window will close automatically when value is set)

mouseScreenX?: number

Undocumented

mouseScreenY?: number

Undocumented

mouseTarget?: EventTarget

Undocumented

mouseX?: number

Undocumented

mouseY?: number

Undocumented

moveable: boolean

Gets/Sets whether window can be moved

name: string

Undocumented

navigator: Navigator

Undocumented

onabort: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Fires when the user aborts the download.

      Parameters

      • this: GlobalEventHandlers
      • ev: UIEvent

        The event.

      Returns any

onafterprint: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Undocumented

      Parameters

      • this: WindowEventHandlers
      • ev: Event

      Returns any

onanimationcancel: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Undocumented

      Parameters

      • this: GlobalEventHandlers
      • ev: AnimationEvent

      Returns any

onanimationend: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Undocumented

      Parameters

      • this: GlobalEventHandlers
      • ev: AnimationEvent

      Returns any

onanimationiteration: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Undocumented

      Parameters

      • this: GlobalEventHandlers
      • ev: AnimationEvent

      Returns any

onanimationstart: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Undocumented

      Parameters

      • this: GlobalEventHandlers
      • ev: AnimationEvent

      Returns any

onauxclick: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Undocumented

      Parameters

      • this: GlobalEventHandlers
      • ev: MouseEvent

      Returns any

onbeforeinput: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Undocumented

      Parameters

      • this: GlobalEventHandlers
      • ev: InputEvent

      Returns any

onbeforeprint: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Undocumented

      Parameters

      • this: WindowEventHandlers
      • ev: Event

      Returns any

onbeforeunload: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Undocumented

      Parameters

      • this: WindowEventHandlers
      • ev: BeforeUnloadEvent

      Returns any

onblur: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Fires when the object loses the input focus.

      Parameters

      • this: GlobalEventHandlers
      • ev: FocusEvent

        The focus event.

      Returns any

oncancel: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Undocumented

      Parameters

      • this: GlobalEventHandlers
      • ev: Event

      Returns any

oncanplay: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Occurs when playback is possible, but would require further buffering.

      Parameters

      • this: GlobalEventHandlers
      • ev: Event

        The event.

      Returns any

oncanplaythrough: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Undocumented

      Parameters

      • this: GlobalEventHandlers
      • ev: Event

      Returns any

onchange: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Fires when the contents of the object or selection have changed.

      Parameters

      • this: GlobalEventHandlers
      • ev: Event

        The event.

      Returns any

onclick: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Fires when the user clicks the left mouse button on the object

      Parameters

      • this: GlobalEventHandlers
      • ev: MouseEvent

        The mouse event.

      Returns any

onclose: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Undocumented

      Parameters

      • this: GlobalEventHandlers
      • ev: Event

      Returns any

oncontextmenu: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Fires when the user clicks the right mouse button in the client area, opening the context menu.

      Parameters

      • this: GlobalEventHandlers
      • ev: MouseEvent

        The mouse event.

      Returns any

oncopy: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Undocumented

      Parameters

      • this: GlobalEventHandlers
      • ev: ClipboardEvent

      Returns any

oncuechange: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Undocumented

      Parameters

      • this: GlobalEventHandlers
      • ev: Event

      Returns any

oncut: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Undocumented

      Parameters

      • this: GlobalEventHandlers
      • ev: ClipboardEvent

      Returns any

ondblclick: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Fires when the user double-clicks the object.

      Parameters

      • this: GlobalEventHandlers
      • ev: MouseEvent

        The mouse event.

      Returns any

ondevicemotion: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Available only in secure contexts.

      Parameters

      • this: Window
      • ev: DeviceMotionEvent

      Returns any

ondeviceorientation: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Available only in secure contexts.

      Parameters

      • this: Window
      • ev: DeviceOrientationEvent

      Returns any

ondrag: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Fires on the source object continuously during a drag operation.

      Parameters

      • this: GlobalEventHandlers
      • ev: DragEvent

        The event.

      Returns any

ondragend: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Fires on the source object when the user releases the mouse at the close of a drag operation.

      Parameters

      • this: GlobalEventHandlers
      • ev: DragEvent

        The event.

      Returns any

ondragenter: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Fires on the target element when the user drags the object to a valid drop target.

      Parameters

      • this: GlobalEventHandlers
      • ev: DragEvent

        The drag event.

      Returns any

ondragleave: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Fires on the target object when the user moves the mouse out of a valid drop target during a drag operation.

      Parameters

      • this: GlobalEventHandlers
      • ev: DragEvent

        The drag event.

      Returns any

ondragover: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Fires on the target element continuously while the user drags the object over a valid drop target.

      Parameters

      • this: GlobalEventHandlers
      • ev: DragEvent

        The event.

      Returns any

ondragstart: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Fires on the source object when the user starts to drag a text selection or selected object.

      Parameters

      • this: GlobalEventHandlers
      • ev: DragEvent

        The event.

      Returns any

ondrop: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Undocumented

      Parameters

      • this: GlobalEventHandlers
      • ev: DragEvent

      Returns any

ondurationchange: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Occurs when the duration attribute is updated.

      Parameters

      • this: GlobalEventHandlers
      • ev: Event

        The event.

      Returns any

onemptied: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Occurs when the media element is reset to its initial state.

      Parameters

      • this: GlobalEventHandlers
      • ev: Event

        The event.

      Returns any

onended: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Occurs when the end of playback is reached.

      Parameters

      • this: GlobalEventHandlers
      • ev: Event

        The event

      Returns any

onerror: OnErrorEventHandlerNonNull

Fires when an error occurs during object loading.

Param

The event.

onfocus: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Fires when the object receives focus.

      Parameters

      • this: GlobalEventHandlers
      • ev: FocusEvent

        The event.

      Returns any

onformdata: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Undocumented

      Parameters

      • this: GlobalEventHandlers
      • ev: FormDataEvent

      Returns any

ongamepadconnected: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Undocumented

      Parameters

      • this: WindowEventHandlers
      • ev: GamepadEvent

      Returns any

ongamepaddisconnected: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Undocumented

      Parameters

      • this: WindowEventHandlers
      • ev: GamepadEvent

      Returns any

ongotpointercapture: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Undocumented

      Parameters

      • this: GlobalEventHandlers
      • ev: PointerEvent

      Returns any

onhashchange: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Undocumented

      Parameters

      • this: WindowEventHandlers
      • ev: HashChangeEvent

      Returns any

oninput: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Undocumented

      Parameters

      • this: GlobalEventHandlers
      • ev: Event

      Returns any

oninvalid: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Undocumented

      Parameters

      • this: GlobalEventHandlers
      • ev: Event

      Returns any

onkeydown: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Fires when the user presses a key.

      Parameters

      • this: GlobalEventHandlers
      • ev: KeyboardEvent

        The keyboard event

      Returns any

onkeypress: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Fires when the user presses an alphanumeric key.

      Deprecated

      Parameters

      • this: GlobalEventHandlers
      • ev: KeyboardEvent

        The event.

      Returns any

onkeyup: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Fires when the user releases a key.

      Parameters

      • this: GlobalEventHandlers
      • ev: KeyboardEvent

        The keyboard event

      Returns any

onlanguagechange: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Undocumented

      Parameters

      • this: WindowEventHandlers
      • ev: Event

      Returns any

onload: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Fires immediately after the browser loads the object.

      Parameters

      • this: GlobalEventHandlers
      • ev: Event

        The event.

      Returns any

onloadeddata: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Occurs when media data is loaded at the current playback position.

      Parameters

      • this: GlobalEventHandlers
      • ev: Event

        The event.

      Returns any

onloadedmetadata: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Occurs when the duration and dimensions of the media have been determined.

      Parameters

      • this: GlobalEventHandlers
      • ev: Event

        The event.

      Returns any

onloadstart: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Occurs when Internet Explorer begins looking for media data.

      Parameters

      • this: GlobalEventHandlers
      • ev: Event

        The event.

      Returns any

onlostpointercapture: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Undocumented

      Parameters

      • this: GlobalEventHandlers
      • ev: PointerEvent

      Returns any

onmessage: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Undocumented

      Parameters

      • this: WindowEventHandlers
      • ev: MessageEvent<any>

      Returns any

onmessageerror: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Undocumented

      Parameters

      • this: WindowEventHandlers
      • ev: MessageEvent<any>

      Returns any

onmousedown: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Fires when the user clicks the object with either mouse button.

      Parameters

      • this: GlobalEventHandlers
      • ev: MouseEvent

        The mouse event.

      Returns any

onmouseenter: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Undocumented

      Parameters

      • this: GlobalEventHandlers
      • ev: MouseEvent

      Returns any

onmouseleave: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Undocumented

      Parameters

      • this: GlobalEventHandlers
      • ev: MouseEvent

      Returns any

onmousemove: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Fires when the user moves the mouse over the object.

      Parameters

      • this: GlobalEventHandlers
      • ev: MouseEvent

        The mouse event.

      Returns any

onmouseout: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Fires when the user moves the mouse pointer outside the boundaries of the object.

      Parameters

      • this: GlobalEventHandlers
      • ev: MouseEvent

        The mouse event.

      Returns any

onmouseover: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Fires when the user moves the mouse pointer into the object.

      Parameters

      • this: GlobalEventHandlers
      • ev: MouseEvent

        The mouse event.

      Returns any

onmouseup: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Fires when the user releases a mouse button while the mouse is over the object.

      Parameters

      • this: GlobalEventHandlers
      • ev: MouseEvent

        The mouse event.

      Returns any

onoffline: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Undocumented

      Parameters

      • this: WindowEventHandlers
      • ev: Event

      Returns any

ononline: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Undocumented

      Parameters

      • this: WindowEventHandlers
      • ev: Event

      Returns any

onorientationchange: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Deprecated

      Parameters

      Returns any

onpagehide: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Undocumented

      Parameters

      • this: WindowEventHandlers
      • ev: PageTransitionEvent

      Returns any

onpageshow: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Undocumented

      Parameters

      • this: WindowEventHandlers
      • ev: PageTransitionEvent

      Returns any

onpaste: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Undocumented

      Parameters

      • this: GlobalEventHandlers
      • ev: ClipboardEvent

      Returns any

onpause: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Occurs when playback is paused.

      Parameters

      • this: GlobalEventHandlers
      • ev: Event

        The event.

      Returns any

onplay: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Occurs when the play method is requested.

      Parameters

      • this: GlobalEventHandlers
      • ev: Event

        The event.

      Returns any

onplaying: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Occurs when the audio or video has started playing.

      Parameters

      • this: GlobalEventHandlers
      • ev: Event

        The event.

      Returns any

onpointercancel: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Undocumented

      Parameters

      • this: GlobalEventHandlers
      • ev: PointerEvent

      Returns any

onpointerdown: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Undocumented

      Parameters

      • this: GlobalEventHandlers
      • ev: PointerEvent

      Returns any

onpointerenter: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Undocumented

      Parameters

      • this: GlobalEventHandlers
      • ev: PointerEvent

      Returns any

onpointerleave: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Undocumented

      Parameters

      • this: GlobalEventHandlers
      • ev: PointerEvent

      Returns any

onpointermove: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Undocumented

      Parameters

      • this: GlobalEventHandlers
      • ev: PointerEvent

      Returns any

onpointerout: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Undocumented

      Parameters

      • this: GlobalEventHandlers
      • ev: PointerEvent

      Returns any

onpointerover: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Undocumented

      Parameters

      • this: GlobalEventHandlers
      • ev: PointerEvent

      Returns any

onpointerup: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Undocumented

      Parameters

      • this: GlobalEventHandlers
      • ev: PointerEvent

      Returns any

onpopstate: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Undocumented

      Parameters

      • this: WindowEventHandlers
      • ev: PopStateEvent

      Returns any

onprogress: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Occurs to indicate progress while downloading media data.

      Parameters

      • this: GlobalEventHandlers
      • ev: ProgressEvent<EventTarget>

        The event.

      Returns any

onratechange: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Occurs when the playback rate is increased or decreased.

      Parameters

      • this: GlobalEventHandlers
      • ev: Event

        The event.

      Returns any

onrejectionhandled: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Undocumented

      Parameters

      • this: WindowEventHandlers
      • ev: PromiseRejectionEvent

      Returns any

onreset: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Fires when the user resets a form.

      Parameters

      • this: GlobalEventHandlers
      • ev: Event

        The event.

      Returns any

onresize: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Undocumented

      Parameters

      • this: GlobalEventHandlers
      • ev: UIEvent

      Returns any

onscroll: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Fires when the user repositions the scroll box in the scroll bar on the object.

      Parameters

      • this: GlobalEventHandlers
      • ev: Event

        The event.

      Returns any

onsecuritypolicyviolation: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Undocumented

      Parameters

      • this: GlobalEventHandlers
      • ev: SecurityPolicyViolationEvent

      Returns any

onseeked: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Occurs when the seek operation ends.

      Parameters

      • this: GlobalEventHandlers
      • ev: Event

        The event.

      Returns any

onseeking: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Occurs when the current playback position is moved.

      Parameters

      • this: GlobalEventHandlers
      • ev: Event

        The event.

      Returns any

onselect: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Fires when the current selection changes.

      Parameters

      • this: GlobalEventHandlers
      • ev: Event

        The event.

      Returns any

onselectionchange: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Undocumented

      Parameters

      • this: GlobalEventHandlers
      • ev: Event

      Returns any

onselectstart: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Undocumented

      Parameters

      • this: GlobalEventHandlers
      • ev: Event

      Returns any

onslotchange: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Undocumented

      Parameters

      • this: GlobalEventHandlers
      • ev: Event

      Returns any

onstalled: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Occurs when the download has stopped.

      Parameters

      • this: GlobalEventHandlers
      • ev: Event

        The event.

      Returns any

onstorage: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Undocumented

      Parameters

      • this: WindowEventHandlers
      • ev: StorageEvent

      Returns any

onsubmit: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Undocumented

      Parameters

      • this: GlobalEventHandlers
      • ev: SubmitEvent

      Returns any

onsuspend: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Occurs if the load operation has been intentionally halted.

      Parameters

      • this: GlobalEventHandlers
      • ev: Event

        The event.

      Returns any

ontimeupdate: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Occurs to indicate the current playback position.

      Parameters

      • this: GlobalEventHandlers
      • ev: Event

        The event.

      Returns any

ontoggle: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Undocumented

      Parameters

      • this: GlobalEventHandlers
      • ev: Event

      Returns any

ontouchcancel?: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Undocumented

      Parameters

      • this: GlobalEventHandlers
      • ev: TouchEvent

      Returns any

ontouchend?: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Undocumented

      Parameters

      • this: GlobalEventHandlers
      • ev: TouchEvent

      Returns any

ontouchmove?: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Undocumented

      Parameters

      • this: GlobalEventHandlers
      • ev: TouchEvent

      Returns any

ontouchstart?: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Undocumented

      Parameters

      • this: GlobalEventHandlers
      • ev: TouchEvent

      Returns any

ontransitioncancel: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Undocumented

      Parameters

      • this: GlobalEventHandlers
      • ev: TransitionEvent

      Returns any

ontransitionend: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Undocumented

      Parameters

      • this: GlobalEventHandlers
      • ev: TransitionEvent

      Returns any

ontransitionrun: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Undocumented

      Parameters

      • this: GlobalEventHandlers
      • ev: TransitionEvent

      Returns any

ontransitionstart: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Undocumented

      Parameters

      • this: GlobalEventHandlers
      • ev: TransitionEvent

      Returns any

onunhandledrejection: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Undocumented

      Parameters

      • this: WindowEventHandlers
      • ev: PromiseRejectionEvent

      Returns any

onunload: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Undocumented

      Parameters

      • this: WindowEventHandlers
      • ev: Event

      Returns any

onvolumechange: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Occurs when the volume is changed, or playback is muted or unmuted.

      Parameters

      • this: GlobalEventHandlers
      • ev: Event

        The event.

      Returns any

onwaiting: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Occurs when playback stops because the next frame of a video resource is not available.

      Parameters

      • this: GlobalEventHandlers
      • ev: Event

        The event.

      Returns any

onwebkitanimationend: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Deprecated

      This is a legacy alias of onanimationend.

      Parameters

      • this: GlobalEventHandlers
      • ev: Event

      Returns any

onwebkitanimationiteration: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Deprecated

      This is a legacy alias of onanimationiteration.

      Parameters

      • this: GlobalEventHandlers
      • ev: Event

      Returns any

onwebkitanimationstart: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Deprecated

      This is a legacy alias of onanimationstart.

      Parameters

      • this: GlobalEventHandlers
      • ev: Event

      Returns any

onwebkittransitionend: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Deprecated

      This is a legacy alias of ontransitionend.

      Parameters

      • this: GlobalEventHandlers
      • ev: Event

      Returns any

onwheel: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Undocumented

      Parameters

      • this: GlobalEventHandlers
      • ev: WheelEvent

      Returns any

opacity: number

Gets/Sets opacity of the window in percentage (0=transparent to 100=opaque, default is 100)

opener: any

Undocumented

orientation: number

Deprecated

origin: string

Undocumented

outData: string

Undocumented

outerHeight: number

Undocumented

outerWidth: number

Undocumented

pageXOffset: number

Deprecated

This is a legacy alias of scrollX.

pageYOffset: number

Deprecated

This is a legacy alias of scrollY.

parent: Window

Refers to either the parent WindowProxy, or itself.

It can rarely be null e.g. for contentWindow of an iframe that is already removed from the parent.

performance: Performance

Undocumented

personalbar: BarProp

Returns true if the personal bar is visible; otherwise, returns false.

popupMenuWindows: boolean

Shape of the window used when semi-transparent window need to be shown. if set to true. It's supposed to be a name of the PNG file with alpha.

posSaveName: string

Gets/Sets name for window's position and size save

reloadInProgress: boolean

Undocumented

resizeable: boolean

Gets/Sets whether window can resize

rightClickOnImage?: boolean

Undocumented

screen: Screen

Undocumented

screenLeft: number

Undocumented

screenTop: number

Undocumented

screenX: number

Undocumented

screenY: number

Undocumented

scrollX: number

Undocumented

scrollY: number

Undocumented

scrollbars: BarProp

Returns true if the scrollbars are visible; otherwise, returns false.

self: Window & typeof globalThis

Undocumented

sessionStorage: Storage

Undocumented

shape: string

Undocumented

shapeColor: number

Undocumented

showAsVideoPlayer: boolean

Undocumented

speechSynthesis: SpeechSynthesis

Undocumented

status: string

Deprecated

statusInfo: Promise<any>

Undocumented

statusbar: BarProp

Returns true if the status bar is visible; otherwise, returns false.

systemDevicePixelRatio: number

Undocumented

textZoomRatio: number

Undocumented

thisWindow: SharedWindow

Undocumented

title: string

Gets/Sets title of the window (visible in the caption bar).

toolWindow: boolean

Gets/Sets tool window style

toolbar: BarProp

Returns true if the toolbar is visible; otherwise, returns false.

top: Window

Undocumented

url: string

Get's URL of the window.

visible: boolean

Get window visibility

visualViewport: VisualViewport

Undocumented

window: Window & typeof globalThis

Undocumented

windowIsLoaded: boolean

Undocumented

Accessors

  • get location(): Location
  • Returns Location

  • set location(href): void
  • Parameters

    • href: string | Location

    Returns void

Methods

  • Translates string to current language

    Parameters

    • Rest ...params: any[]

    Returns any

    string

  • Undocumented

    Parameters

    • Rest ...params: any[]

    Returns void

  • Makes window active.

    Returns void

  • Undocumented

    Type Parameters

    • K extends keyof WindowEventMap

    Parameters

    • type: K
    • listener: ((this, ev) => any)
        • (this, ev): any
        • Parameters

          • this: Window
          • ev: WindowEventMap[K]

          Returns any

    • Optional options: boolean | AddEventListenerOptions

    Returns void

  • Undocumented

    Parameters

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

    Returns void

  • Undocumented

    Parameters

    • Optional message: any

    Returns void

  • Undocumented

    Parameters

    • Rest ...params: any[]

    Returns void

  • Undocumented

    Parameters

    • data: string

    Returns string

  • Undocumented

    Returns void

  • Undocumented

    Parameters

    • data: string

    Returns string

  • Send debug string to log

    Parameters

    • s: string

    Returns void

  • Undocumented

    Parameters

    • handle: number

    Returns void

  • Undocumented

    Parameters

    • handle: number

    Returns void

  • Deprecated

    Returns void

  • Undocumented

    Parameters

    • id: number

    Returns void

  • Undocumented

    Parameters

    • id: number

    Returns void

  • Closes the window.

    Returns void

  • Close window

    Returns void

  • Undocumented

    Parameters

    • Optional message: string

    Returns boolean

  • Undocumented

    Parameters

    • image: ImageBitmapSource
    • Optional options: ImageBitmapOptions

    Returns Promise<ImageBitmap>

  • Undocumented

    Parameters

    • image: ImageBitmapSource
    • sx: number
    • sy: number
    • sw: number
    • sh: number
    • Optional options: ImageBitmapOptions

    Returns Promise<ImageBitmap>

  • Create child window with current window is set as parent

    Parameters

    • URL: string

      URL to open in new window

    • params: any

      Parameters to create window (left, top, width, height)

    Returns SharedWindow

    TSharedWindow

  • Undocumented

    Parameters

    • itemID: number
    • customData: number

    Returns void

  • 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

  • Executes the given JS code in the target HTML window.

    Parameters

    • Rest ...params: any[]

    Returns any

    variant

  • Exceutes the given JS script in the target HTML window.

    Parameters

    • URL: string

      URL of script to be executed

    Returns void

  • Undocumented

    Parameters

    • input: URL | RequestInfo
    • Optional init: RequestInit

    Returns Promise<Response>

  • Moves the focus to the window's browsing context, if any.

    Returns void

  • Get async show token (to override default show mechanism). Call this token once dialog is prepared and can be shown.

    Returns any

  • Gets class name of the object.

    Returns string

  • Undocumented

    Parameters

    • elt: Element
    • Optional pseudoElt: string

    Returns CSSStyleDeclaration

  • Undocumented

    Returns Selection

  • Undocumented

    Parameters

    • variable: string

    Returns any

  • Create/Update/Delete embedded window with custom content.

    Parameters

    • Rest ...params: any[]

    Returns Promise<any>

  • Hide window

    Returns void

  • Undocumented

    Returns number

  • Include script to current window

    Parameters

    • filename: string

      Name of script file

    Returns void

  • Call defined method with locked data so user can access them.

    Parameters

    • func: (() => any)

      Method to call

        • (): any
        • Returns any

    Returns void

  • Undocumented

    Parameters

    • query: string

    Returns MediaQueryList

  • Maximize window

    Returns void

  • Shows standard message dialog.

    Example

    messageDlg('Some message.', 'information', ['btnOK', 'btnCancel', {btnID:'btnHelp', caption:'Custom help'}], 'btnOK', function (result) {
    alert("Result received: " + result);
    });

    Parameters

    • msg: string

      Text of the message.

    • dlgType: string

      Message dialog type: 'warning', 'error', 'information', 'confirmation' or 'help'

    • buttons: any

      Array of buttons. Each button could be defined by its string ID or by object (Buttons.addBtn | for structure see parameter params of addBtn method)
      Possible button id's: 'btnYes', 'btnNo', 'btnOK', 'btnCancel', 'btnAbort', 'btnRetry', 'btnIgnore', 'btnAll', 'btnNoToAll', 'btnYesToAll', 'btnHelp', 'btnClose' or some custom.

    • params: any

      Object with other params. Possible attributes:
      title: window caption.
      defaultButton: id of default button.
      chbCaption: caption of checkbox.
      checked: initial state of checkbox.

    • cbk: any

      Callback function, that receives the result value (object with buttonID and checked attributes).

    Returns void

  • Minimize window

    Returns void

  • Undocumented

    Parameters

    • x: number
    • y: number

    Returns void

  • Undocumented

    Parameters

    • x: number
    • y: number

    Returns void

  • Undocumented

    Returns void

  • Undocumented

    Returns void

  • Undocumented

    Returns void

  • Undocumented

    Parameters

    • Optional url: string | URL
    • Optional target: string
    • Optional features: string

    Returns Window

  • Posts a message to the given window. Messages can be structured objects, e.g. nested objects and arrays, can contain JavaScript values (strings, numbers, Date objects, etc), and can contain certain data objects such as File Blob, FileList, and ArrayBuffer objects.

    Objects listed in the transfer member of options are transferred, not just cloned, meaning that they are no longer usable on the sending side.

    A target origin can be specified using the targetOrigin member of options. If not provided, it defaults to "/". This default restricts the message to same-origin targets only.

    If the origin of the target window doesn't match the given target origin, the message is discarded, to avoid information leakage. To send the message to the target regardless of origin, set the target origin to "*".

    Throws a "DataCloneError" DOMException if transfer array contains duplicate objects or if message could not be cloned.

    Parameters

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

    Returns void

  • Undocumented

    Parameters

    • message: any
    • Optional options: WindowPostMessageOptions

    Returns void

  • Undocumented

    Parameters

    • prevent: boolean

    Returns void

  • Undocumented

    Returns void

  • Undocumented

    Parameters

    • Optional message: string
    • Optional _default: string

    Returns string

  • Undocumented

    Parameters

    • callback: VoidFunction

    Returns void

  • Deprecated

    Returns void

  • Undocumented

    Type Parameters

    • K extends keyof WindowEventMap

    Parameters

    • type: K
    • listener: ((this, ev) => any)
        • (this, ev): any
        • Parameters

          • this: Window
          • ev: WindowEventMap[K]

          Returns any

    • Optional options: boolean | EventListenerOptions

    Returns void

  • Undocumented

    Parameters

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

    Returns void

  • Undocumented

    Parameters

    • e: any

    Returns void

  • Undocumented

    Parameters

    • callback: FrameRequestCallback

    Returns number

  • Undocumented

    Parameters

    • callback: IdleRequestCallback
    • Optional options: IdleRequestOptions

    Returns number

  • Undocumented

    Parameters

    • x: number
    • y: number

    Returns void

  • Undocumented

    Parameters

    • width: number
    • height: number

    Returns void

  • Restore window

    Returns void

  • Undocumented

    Parameters

    • val: any

    Returns Promise<any>

  • Undocumented

    Parameters

    • Rest ...params: any[]

    Returns void

  • Undocumented

    Parameters

    • Optional options: ScrollToOptions

    Returns void

  • Undocumented

    Parameters

    • x: number
    • y: number

    Returns void

  • Undocumented

    Parameters

    • Optional options: ScrollToOptions

    Returns void

  • Undocumented

    Parameters

    • x: number
    • y: number

    Returns void

  • Undocumented

    Parameters

    • Optional options: ScrollToOptions

    Returns void

  • Undocumented

    Parameters

    • x: number
    • y: number

    Returns void

  • Undocumented

    Parameters

    • clr: string

    Returns void

  • Set bounds of the window

    Parameters

    • Aleft: number
    • Atop: number
    • Awidth: number
    • Aheight: number

    Returns void

  • Sets window client size

    Parameters

    • Awidth: number
    • Aheight: number

    Returns void

  • Undocumented

    Parameters

    • pos: string
    • align: string

    Returns void

  • Undocumented

    Parameters

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

    Returns number

  • Undocumented

    Parameters

    • data: any

    Returns void

  • Undocumented

    Parameters

    • par: any

    Returns void

  • Sets window size

    Parameters

    • Awidth: number
    • Aheight: number

    Returns void

  • Undocumented

    Parameters

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

    Returns number

  • Undocumented

    Parameters

    • variable: string
    • Value: any

    Returns void

  • Undocumented

    Parameters

    • hasBorder: boolean
    • isFlat: boolean

    Returns void

  • Show window

    Returns void

  • Undocumented

    Parameters

    • Rest ...params: any[]

    Returns void

  • Show window as modal dialog

    Returns void

  • Cancels the document load.

    Returns void

  • Undocumented

    Parameters

    • value: any
    • Optional options: StructuredSerializeOptions

    Returns any

  • Undocumented

    Parameters

    • Value: string

    Returns void

Events

event_activated: ((isActivated, ncArea) => void)

Type declaration

    • (isActivated, ncArea): void
    • Event is called when window become active

      See App.listen

      Parameters

      • isActivated: boolean
      • ncArea: boolean

      Returns void

event_afterInit: (() => void)

Type declaration

    • (): void
    • Event is called after the dialog's init function is called

      See App.listen

      Returns void

event_closeQuery: ((token) => void)

Type declaration

    • (token): void
    • Event is called when browser is going to close

      See App.listen

      Parameters

      Returns void

event_closed: (() => void)

Type declaration

    • (): void
    • Event is called when browser is closed

      See App.listen

      Returns void

event_embeddedWindowCreate: (() => void)

Type declaration

    • (): void
    • Event is called when embedded window is created

      See App.listen

      Returns void

event_initialized: (() => void)

Type declaration

    • (): void
    • Event is called when window is initialized and ready to use context

      See App.listen

      Returns void

event_load: (() => void)

Type declaration

    • (): void
    • Event is called when page is loaded into memory

      See App.listen

      Returns void

event_mousestatechanged: (() => void)

Type declaration

    • (): void
    • Event is called when any mouse event is raised (move, down, up...)

      See App.listen

      Returns void

event_moved: (() => void)

Type declaration

    • (): void
    • Event is called when window is moved to new location

      See App.listen

      Returns void

event_ready: (() => void)

Type declaration

    • (): void
    • Event is called when DCOM is finished

      See App.listen

      Returns void

event_scriptsLoaded: (() => void)

Type declaration

    • (): void
    • Event is called when all scripts are loaded

      See App.listen

      Returns void

event_show: (() => void)

Type declaration

    • (): void
    • Event is called when window is shown

      See App.listen

      Returns void

event_visibilityChanged: ((isMinimized, hidden, state) => void)

Type declaration

    • (isMinimized, hidden, state): void
    • Event is called when window's visibility was changed (e.g. window gets hidden or minimized)

      See App.listen

      Parameters

      • isMinimized: boolean

        new window state is 'minimized'

      • hidden: boolean

        window is going to hide

      • state: any

        window state

      Returns void