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

interface Window {
    _scheduledLayoutDown?: boolean;
    _window: any;
    active: boolean;
    addHeader: boolean;
    atTop: boolean;
    atTopMost: boolean;
    borderSize: number;
    bordered: boolean;
    bounds: Bounds;
    builtInMenu: boolean;
    caches: CacheStorage;
    canMaximize: boolean;
    canMinimize: boolean;
    canShow: boolean;
    clientHeight: number;
    clientInformation: Navigator;
    clientWidth: number;
    closed: boolean;
    crossOriginIsolated: boolean;
    crypto: Crypto;
    customElements: CustomElementRegistry;
    devToolsUrl: string;
    devicePixelRatio: number;
    doNotCheckLess?: boolean;
    dockAlign: string;
    dockPos: string;
    document: Document;
    event: Event;
    event_activated: ((isActivated, ncArea) => void);
    event_afterInit: (() => void);
    event_closeQuery: ((token) => void);
    event_closed: (() => void);
    event_dragfinished: ((e) => any);
    event_embeddedWindowCreate: (() => void);
    event_focusedcontrol: ((e) => any);
    event_initialized: (() => void);
    event_layoutchange: ((e) => any);
    event_load: (() => void);
    event_mousestatechanged: (() => void);
    event_moved: (() => void);
    event_ready: (() => void);
    event_scriptsLoaded: (() => void);
    event_show: (() => void);
    event_visibilityChanged: ((isMinimized, hidden, state) => void);
    external: External;
    fadeTime: number;
    flat: boolean;
    forceClose: boolean;
    frameElement: Element;
    frames: Window;
    headerClass: any;
    history: History;
    inData: string;
    indexedDB: IDBFactory;
    innerHeight: number;
    innerWidth: number;
    inspectElementSupported: boolean;
    isMainWindow: boolean;
    isMenu: boolean;
    isModal: boolean;
    isSecureContext: boolean;
    layoutLocked: number;
    layoutUpdateNeeded?: boolean;
    length: number;
    localStorage: Storage;
    locationbar: BarProp;
    magnetToScreen: boolean;
    magnetToWindows: boolean;
    maximized: boolean;
    menuJSON: string;
    menubar: BarProp;
    minimized: boolean;
    modalResult: number;
    mouseScreenX?: number;
    mouseScreenY?: number;
    mouseTarget?: EventTarget;
    mouseX?: number;
    mouseY?: number;
    moveable: boolean;
    name: string;
    navigator: Navigator;
    onabort: ((this, ev) => any);
    onafterprint: ((this, ev) => any);
    onanimationcancel: ((this, ev) => any);
    onanimationend: ((this, ev) => any);
    onanimationiteration: ((this, ev) => any);
    onanimationstart: ((this, ev) => any);
    onauxclick: ((this, ev) => any);
    onbeforeinput: ((this, ev) => any);
    onbeforeprint: ((this, ev) => any);
    onbeforeunload: ((this, ev) => any);
    onblur: ((this, ev) => any);
    oncancel: ((this, ev) => any);
    oncanplay: ((this, ev) => any);
    oncanplaythrough: ((this, ev) => any);
    onchange: ((this, ev) => any);
    onclick: ((this, ev) => any);
    onclose: ((this, ev) => any);
    oncontextmenu: ((this, ev) => any);
    oncopy: ((this, ev) => any);
    oncuechange: ((this, ev) => any);
    oncut: ((this, ev) => any);
    ondblclick: ((this, ev) => any);
    ondevicemotion: ((this, ev) => any);
    ondeviceorientation: ((this, ev) => any);
    ondrag: ((this, ev) => any);
    ondragend: ((this, ev) => any);
    ondragenter: ((this, ev) => any);
    ondragleave: ((this, ev) => any);
    ondragover: ((this, ev) => any);
    ondragstart: ((this, ev) => any);
    ondrop: ((this, ev) => any);
    ondurationchange: ((this, ev) => any);
    onemptied: ((this, ev) => any);
    onended: ((this, ev) => any);
    onerror: OnErrorEventHandlerNonNull;
    onfocus: ((this, ev) => any);
    onformdata: ((this, ev) => any);
    ongamepadconnected: ((this, ev) => any);
    ongamepaddisconnected: ((this, ev) => any);
    ongotpointercapture: ((this, ev) => any);
    onhashchange: ((this, ev) => any);
    oninput: ((this, ev) => any);
    oninvalid: ((this, ev) => any);
    onkeydown: ((this, ev) => any);
    onkeypress: ((this, ev) => any);
    onkeyup: ((this, ev) => any);
    onlanguagechange: ((this, ev) => any);
    onload: ((this, ev) => any);
    onloadeddata: ((this, ev) => any);
    onloadedmetadata: ((this, ev) => any);
    onloadstart: ((this, ev) => any);
    onlostpointercapture: ((this, ev) => any);
    onmessage: ((this, ev) => any);
    onmessageerror: ((this, ev) => any);
    onmousedown: ((this, ev) => any);
    onmouseenter: ((this, ev) => any);
    onmouseleave: ((this, ev) => any);
    onmousemove: ((this, ev) => any);
    onmouseout: ((this, ev) => any);
    onmouseover: ((this, ev) => any);
    onmouseup: ((this, ev) => any);
    onoffline: ((this, ev) => any);
    ononline: ((this, ev) => any);
    onorientationchange: ((this, ev) => any);
    onpagehide: ((this, ev) => any);
    onpageshow: ((this, ev) => any);
    onpaste: ((this, ev) => any);
    onpause: ((this, ev) => any);
    onplay: ((this, ev) => any);
    onplaying: ((this, ev) => any);
    onpointercancel: ((this, ev) => any);
    onpointerdown: ((this, ev) => any);
    onpointerenter: ((this, ev) => any);
    onpointerleave: ((this, ev) => any);
    onpointermove: ((this, ev) => any);
    onpointerout: ((this, ev) => any);
    onpointerover: ((this, ev) => any);
    onpointerup: ((this, ev) => any);
    onpopstate: ((this, ev) => any);
    onprogress: ((this, ev) => any);
    onratechange: ((this, ev) => any);
    onrejectionhandled: ((this, ev) => any);
    onreset: ((this, ev) => any);
    onresize: ((this, ev) => any);
    onscroll: ((this, ev) => any);
    onsecuritypolicyviolation: ((this, ev) => any);
    onseeked: ((this, ev) => any);
    onseeking: ((this, ev) => any);
    onselect: ((this, ev) => any);
    onselectionchange: ((this, ev) => any);
    onselectstart: ((this, ev) => any);
    onslotchange: ((this, ev) => any);
    onstalled: ((this, ev) => any);
    onstorage: ((this, ev) => any);
    onsubmit: ((this, ev) => any);
    onsuspend: ((this, ev) => any);
    ontimeupdate: ((this, ev) => any);
    ontoggle: ((this, ev) => any);
    ontouchcancel?: ((this, ev) => any);
    ontouchend?: ((this, ev) => any);
    ontouchmove?: ((this, ev) => any);
    ontouchstart?: ((this, ev) => any);
    ontransitioncancel: ((this, ev) => any);
    ontransitionend: ((this, ev) => any);
    ontransitionrun: ((this, ev) => any);
    ontransitionstart: ((this, ev) => any);
    onunhandledrejection: ((this, ev) => any);
    onunload: ((this, ev) => any);
    onvolumechange: ((this, ev) => any);
    onwaiting: ((this, ev) => any);
    onwebkitanimationend: ((this, ev) => any);
    onwebkitanimationiteration: ((this, ev) => any);
    onwebkitanimationstart: ((this, ev) => any);
    onwebkittransitionend: ((this, ev) => any);
    onwheel: ((this, ev) => any);
    opacity: number;
    opener: any;
    orientation: number;
    origin: string;
    outData: string;
    outerHeight: number;
    outerWidth: number;
    pageXOffset: number;
    pageYOffset: number;
    parent: Window;
    performance: Performance;
    personalbar: BarProp;
    popupMenuWindows: boolean;
    posSaveName: string;
    reloadInProgress: boolean;
    resizeable: boolean;
    rightClickOnImage?: boolean;
    screen: Screen;
    screenLeft: number;
    screenTop: number;
    screenX: number;
    screenY: number;
    scrollX: number;
    scrollY: number;
    scrollbars: BarProp;
    self: Window & typeof globalThis;
    sessionStorage: Storage;
    shape: string;
    shapeColor: number;
    showAsVideoPlayer: boolean;
    speechSynthesis: SpeechSynthesis;
    status: string;
    statusInfo: Promise<any>;
    statusbar: BarProp;
    systemDevicePixelRatio: number;
    textZoomRatio: number;
    thisWindow: SharedWindow;
    title: string;
    toolWindow: boolean;
    toolbar: BarProp;
    top: Window;
    url: string;
    visible: boolean;
    visualViewport: VisualViewport;
    window: Window & typeof globalThis;
    windowIsLoaded: boolean;
    location: Location;
    _(...params): any;
    _alert(...params): void;
    activate(): void;
    addEventListener<K>(type, listener, options?): void;
    addEventListener(type, listener, options?): void;
    alert(message?): void;
    applyWindowStates(...params): void;
    atob(data): string;
    blur(): void;
    btoa(data): string;
    callDialogInit(): void;
    callODS(s): void;
    cancelAnimationFrame(handle): void;
    cancelIdleCallback(handle): void;
    captureEvents(): void;
    clearInterval(id): void;
    clearTimeout(id): void;
    close(): void;
    closeWindow(): void;
    confirm(message?): boolean;
    createImageBitmap(image, options?): Promise<ImageBitmap>;
    createImageBitmap(image, sx, sy, sw, sh, options?): Promise<ImageBitmap>;
    createOwnWindow(URL, params): SharedWindow;
    customMenuItemClick(itemID, customData): void;
    dispatchEvent(event): boolean;
    executeCode(...params): any;
    executeFile(URL): void;
    fetch(input, init?): Promise<Response>;
    focus(): void;
    getAsyncShowToken(): any;
    getClassName(): string;
    getComputedStyle(elt, pseudoElt?): CSSStyleDeclaration;
    getSelection(): Selection;
    getValue(variable): any;
    getValueInWindowContext(Value): any;
    getWindowMonitor(): any;
    handleEmbeddedWindow(...params): Promise<any>;
    hide(): void;
    identifier(): number;
    include(filename): void;
    locked(func): void;
    matchMedia(query): MediaQueryList;
    maximize(): void;
    messageDlg(msg, dlgType, buttons, params, cbk): void;
    minimize(): void;
    moveBy(x, y): void;
    moveTo(x, y): void;
    newStringList(...params): StringList;
    notifyLoaded(): void;
    notifyOnClose(): void;
    notifyOnReady(): void;
    open(url?, target?, features?): Window;
    postMessage(message, targetOrigin, transfer?): void;
    postMessage(message, options?): void;
    preventClose(prevent): void;
    print(): void;
    prompt(message?, _default?): string;
    queueMicrotask(callback): void;
    releaseEvents(): void;
    removeEventListener<K>(type, listener, options?): void;
    removeEventListener(type, listener, options?): void;
    reportError(e): void;
    requestAnimationFrame(callback): number;
    requestIdleCallback(callback, options?): number;
    resizeBy(x, y): void;
    resizeTo(width, height): void;
    restore(): void;
    runCommand(val): Promise<any>;
    runJSCode_callback(...params): void;
    scroll(options?): void;
    scroll(x, y): void;
    scrollBy(options?): void;
    scrollBy(x, y): void;
    scrollTo(options?): void;
    scrollTo(x, y): void;
    setBackgroundColor(clr): void;
    setBounds(Aleft, Atop, Awidth, Aheight): void;
    setClientSize(Awidth, Aheight): void;
    setDock(pos, align): void;
    setInterval(handler, timeout?, ...arguments): number;
    setMoveableArea(data): void;
    setMoveableColor(par): void;
    setSize(Awidth, Aheight): void;
    setTimeout(handler, timeout?, ...arguments): number;
    setValue(variable, Value): void;
    setWindowState(hasBorder, isFlat): void;
    show(): void;
    showDevTools(...params): void;
    showModal(): void;
    stop(): void;
    structuredClone(value, options?): any;
    updateDevicePixelRatio(): void;
    updateMenu(Value): void;
    [index: number]: Window;
}

Hierarchy (view full)

  • 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

Events

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

Undocumented

event_focusedcontrol: ((e) => any)

Type declaration

    • (e): any
    • Parameters

      • e: CustomEvent<any>

      Returns any

Undocumented

event_layoutchange: ((e) => any)

Type declaration

    • (e): any
    • Parameters

      • e: CustomEvent<any>

      Returns any

Undocumented

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)

Fires when the user aborts the download.

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: UIEvent

        The event.

      Returns any

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: WindowEventHandlers
      • ev: Event

      Returns any

Undocumented

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: AnimationEvent

      Returns any

Undocumented

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: AnimationEvent

      Returns any

Undocumented

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: AnimationEvent

      Returns any

Undocumented

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: AnimationEvent

      Returns any

Undocumented

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: MouseEvent

      Returns any

Undocumented

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: InputEvent

      Returns any

Undocumented

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: WindowEventHandlers
      • ev: Event

      Returns any

Undocumented

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: WindowEventHandlers
      • ev: BeforeUnloadEvent

      Returns any

Undocumented

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

Fires when the object loses the input focus.

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: FocusEvent

        The focus event.

      Returns any

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: Event

      Returns any

Undocumented

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

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: Event

        The event.

      Returns any

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: Event

      Returns any

Undocumented

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

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: Event

        The event.

      Returns any

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

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: MouseEvent

        The mouse event.

      Returns any

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: Event

      Returns any

Undocumented

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

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: MouseEvent

        The mouse event.

      Returns any

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: ClipboardEvent

      Returns any

Undocumented

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: Event

      Returns any

Undocumented

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: ClipboardEvent

      Returns any

Undocumented

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

Fires when the user double-clicks the object.

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: MouseEvent

        The mouse event.

      Returns any

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

Available only in secure contexts.

Type declaration

    • (this, ev): any
    • Parameters

      • this: Window
      • ev: DeviceMotionEvent

      Returns any

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

Available only in secure contexts.

Type declaration

    • (this, ev): any
    • Parameters

      • this: Window
      • ev: DeviceOrientationEvent

      Returns any

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

Fires on the source object continuously during a drag operation.

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: DragEvent

        The event.

      Returns any

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

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: DragEvent

        The event.

      Returns any

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

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: DragEvent

        The drag event.

      Returns any

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

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: DragEvent

        The drag event.

      Returns any

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

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: DragEvent

        The event.

      Returns any

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

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: DragEvent

        The event.

      Returns any

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: DragEvent

      Returns any

Undocumented

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

Occurs when the duration attribute is updated.

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: Event

        The event.

      Returns any

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

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: Event

        The event.

      Returns any

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

Occurs when the end of playback is reached.

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: Event

        The event

      Returns any

onerror: OnErrorEventHandlerNonNull

Fires when an error occurs during object loading.

Param: ev

The event.

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

Fires when the object receives focus.

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: FocusEvent

        The event.

      Returns any

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: FormDataEvent

      Returns any

Undocumented

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: WindowEventHandlers
      • ev: GamepadEvent

      Returns any

Undocumented

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: WindowEventHandlers
      • ev: GamepadEvent

      Returns any

Undocumented

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: PointerEvent

      Returns any

Undocumented

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: WindowEventHandlers
      • ev: HashChangeEvent

      Returns any

Undocumented

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: Event

      Returns any

Undocumented

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: Event

      Returns any

Undocumented

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

Fires when the user presses a key.

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: KeyboardEvent

        The keyboard event

      Returns any

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

Fires when the user presses an alphanumeric key.

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: KeyboardEvent

        The event.

      Returns any

Deprecated

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

Fires when the user releases a key.

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: KeyboardEvent

        The keyboard event

      Returns any

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: WindowEventHandlers
      • ev: Event

      Returns any

Undocumented

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

Fires immediately after the browser loads the object.

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: Event

        The event.

      Returns any

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

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: Event

        The event.

      Returns any

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

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: Event

        The event.

      Returns any

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

Occurs when Internet Explorer begins looking for media data.

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: Event

        The event.

      Returns any

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: PointerEvent

      Returns any

Undocumented

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: WindowEventHandlers
      • ev: MessageEvent<any>

      Returns any

Undocumented

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: WindowEventHandlers
      • ev: MessageEvent<any>

      Returns any

Undocumented

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

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: MouseEvent

        The mouse event.

      Returns any

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: MouseEvent

      Returns any

Undocumented

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: MouseEvent

      Returns any

Undocumented

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

Fires when the user moves the mouse over the object.

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: MouseEvent

        The mouse event.

      Returns any

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

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: MouseEvent

        The mouse event.

      Returns any

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

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: MouseEvent

        The mouse event.

      Returns any

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

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: MouseEvent

        The mouse event.

      Returns any

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: WindowEventHandlers
      • ev: Event

      Returns any

Undocumented

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: WindowEventHandlers
      • ev: Event

      Returns any

Undocumented

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

Type declaration

    • (this, ev): any
    • Parameters

      Returns any

Deprecated

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: WindowEventHandlers
      • ev: PageTransitionEvent

      Returns any

Undocumented

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: WindowEventHandlers
      • ev: PageTransitionEvent

      Returns any

Undocumented

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: ClipboardEvent

      Returns any

Undocumented

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

Occurs when playback is paused.

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: Event

        The event.

      Returns any

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

Occurs when the play method is requested.

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: Event

        The event.

      Returns any

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

Occurs when the audio or video has started playing.

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: Event

        The event.

      Returns any

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: PointerEvent

      Returns any

Undocumented

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: PointerEvent

      Returns any

Undocumented

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: PointerEvent

      Returns any

Undocumented

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: PointerEvent

      Returns any

Undocumented

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: PointerEvent

      Returns any

Undocumented

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: PointerEvent

      Returns any

Undocumented

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: PointerEvent

      Returns any

Undocumented

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: PointerEvent

      Returns any

Undocumented

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: WindowEventHandlers
      • ev: PopStateEvent

      Returns any

Undocumented

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

Occurs to indicate progress while downloading media data.

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: ProgressEvent<EventTarget>

        The event.

      Returns any

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

Occurs when the playback rate is increased or decreased.

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: Event

        The event.

      Returns any

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: WindowEventHandlers
      • ev: PromiseRejectionEvent

      Returns any

Undocumented

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

Fires when the user resets a form.

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: Event

        The event.

      Returns any

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: UIEvent

      Returns any

Undocumented

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

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: Event

        The event.

      Returns any

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: SecurityPolicyViolationEvent

      Returns any

Undocumented

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

Occurs when the seek operation ends.

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: Event

        The event.

      Returns any

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

Occurs when the current playback position is moved.

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: Event

        The event.

      Returns any

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

Fires when the current selection changes.

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: Event

        The event.

      Returns any

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: Event

      Returns any

Undocumented

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: Event

      Returns any

Undocumented

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: Event

      Returns any

Undocumented

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

Occurs when the download has stopped.

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: Event

        The event.

      Returns any

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: WindowEventHandlers
      • ev: StorageEvent

      Returns any

Undocumented

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: SubmitEvent

      Returns any

Undocumented

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

Occurs if the load operation has been intentionally halted.

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: Event

        The event.

      Returns any

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

Occurs to indicate the current playback position.

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: Event

        The event.

      Returns any

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: Event

      Returns any

Undocumented

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: TouchEvent

      Returns any

Undocumented

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: TouchEvent

      Returns any

Undocumented

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: TouchEvent

      Returns any

Undocumented

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: TouchEvent

      Returns any

Undocumented

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: TransitionEvent

      Returns any

Undocumented

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: TransitionEvent

      Returns any

Undocumented

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: TransitionEvent

      Returns any

Undocumented

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: TransitionEvent

      Returns any

Undocumented

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: WindowEventHandlers
      • ev: PromiseRejectionEvent

      Returns any

Undocumented

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: WindowEventHandlers
      • ev: Event

      Returns any

Undocumented

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

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: Event

        The event.

      Returns any

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

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: Event

        The event.

      Returns any

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: Event

      Returns any

Deprecated

This is a legacy alias of onanimationend.

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: Event

      Returns any

Deprecated

This is a legacy alias of onanimationiteration.

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: Event

      Returns any

Deprecated

This is a legacy alias of onanimationstart.

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: Event

      Returns any

Deprecated

This is a legacy alias of ontransitionend.

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: WheelEvent

      Returns any

Undocumented

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

  • Parameters

    • Rest ...params: any[]

    Returns void

    Undocumented

  • Makes window active.

    Returns void

  • Type Parameters

    • K extends keyof WindowEventMap

    Parameters

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

          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

    Undocumented

  • Send debug string to log

    Parameters

    • s: string

    Returns void

  • Parameters

    • handle: number

    Returns void

    Undocumented

  • Parameters

    • handle: number

    Returns void

    Undocumented

  • Returns void

    Deprecated

  • Parameters

    • id: number

    Returns void

    Undocumented

  • Parameters

    • id: number

    Returns void

    Undocumented

  • Closes the window.

    Returns void

  • Close window

    Returns void

  • 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>

    Undocumented

  • 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

  • Parameters

    • itemID: number
    • customData: number

    Returns void

    Undocumented

  • 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

  • Parameters

    • input: URL | RequestInfo
    • Optional init: RequestInit

    Returns Promise<Response>

    Undocumented

  • 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

  • Parameters

    • elt: Element
    • Optional pseudoElt: string

    Returns CSSStyleDeclaration

    Undocumented

  • Returns Selection

    Undocumented

  • Parameters

    • variable: string

    Returns any

    Undocumented

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

    Parameters

    • Rest ...params: any[]

    Returns Promise<any>

  • Hide window

    Returns void

  • Returns number

    Undocumented

  • 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

  • Parameters

    • query: string

    Returns MediaQueryList

    Undocumented

  • Maximize window

    Returns void

  • Shows standard message dialog.

    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

    Example

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

    Returns void

  • Parameters

    • x: number
    • y: number

    Returns void

    Undocumented

  • Parameters

    • x: number
    • y: number

    Returns void

    Undocumented

  • Parameters

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

    Returns Window

    Undocumented

  • 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

  • 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

    Undocumented

  • Returns void

    Deprecated

  • Type Parameters

    • K extends keyof WindowEventMap

    Parameters

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

          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

    Undocumented

  • Restore window

    Returns void

  • 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

    Undocumented

  • 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

  • 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

    Undocumented

  • Sets window size

    Parameters

    • Awidth: number
    • Aheight: number

    Returns void

  • 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

    Undocumented

  • Show window

    Returns void

  • Parameters

    • Rest ...params: any[]

    Returns void

    Undocumented

  • Show window as modal dialog

    Returns void

  • Cancels the document load.

    Returns void

  • Parameters

    • value: any
    • Optional options: StructuredSerializeOptions

    Returns any

    Undocumented

  • Parameters

    • Value: string

    Returns void

    Undocumented

Events

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

Event is called when window become active

See App.listen

Type declaration

    • (isActivated, ncArea): void
    • Parameters

      • isActivated: boolean
      • ncArea: boolean

      Returns void

event_afterInit: (() => void)

Event is called after the dialog's init function is called

See App.listen

Type declaration

    • (): void
    • Returns void

event_closeQuery: ((token) => void)

Event is called when browser is going to close

See App.listen

Type declaration

    • (token): void
    • Parameters

      Returns void

event_closed: (() => void)

Event is called when browser is closed

See App.listen

Type declaration

    • (): void
    • Returns void

event_embeddedWindowCreate: (() => void)

Event is called when embedded window is created

See App.listen

Type declaration

    • (): void
    • Returns void

event_initialized: (() => void)

Event is called when window is initialized and ready to use context

See App.listen

Type declaration

    • (): void
    • Returns void

event_load: (() => void)

Event is called when page is loaded into memory

See App.listen

Type declaration

    • (): void
    • Returns void

event_mousestatechanged: (() => void)

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

See App.listen

Type declaration

    • (): void
    • Returns void

event_moved: (() => void)

Event is called when window is moved to new location

See App.listen

Type declaration

    • (): void
    • Returns void

event_ready: (() => void)

Event is called when DCOM is finished

See App.listen

Type declaration

    • (): void
    • Returns void

event_scriptsLoaded: (() => void)

Event is called when all scripts are loaded

See App.listen

Type declaration

    • (): void
    • Returns void

event_show: (() => void)

Event is called when window is shown

See App.listen

Type declaration

    • (): void
    • Returns void

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

Event is called when window's visibility was changed (e.g. window gets hidden or minimized)

See App.listen

Type declaration

    • (isMinimized, hidden, state): void
    • Parameters

      • isMinimized: boolean

        new window state is 'minimized'

      • hidden: boolean

        window is going to hide

      • state: any

        window state

      Returns void