Xivgear Types Documentation
    Preparing search index...

    The Window interface represents a window containing a DOM document; the document property points to the DOM document loaded in that window.

    MDN Reference

    interface Window {
        accStateTracker?: AccountStateTracker;
        after: HookFunction;
        afterEach: HookFunction;
        before: HookFunction;
        beforeEach: HookFunction;
        caches: CacheStorage;
        clientInformation: Navigator;
        closed: boolean;
        context: SuiteFunction;
        cookieStore: CookieStore;
        crossOriginIsolated: boolean;
        crypto: Crypto;
        currentAds?: ManagedAd[];
        currentGearSet?: CharacterGearSet;
        currentSheet?: GearPlanSheetGui;
        customElements: CustomElementRegistry;
        describe: SuiteFunction;
        devicePixelRatio: number;
        document: Document;
        event: Event;
        external: External;
        frameElement: Element;
        frames: Window;
        history: History;
        indexedDB: IDBFactory;
        innerHeight: number;
        innerWidth: number;
        isSecureContext: boolean;
        it: TestFunction;
        length: number;
        localStorage: Storage;
        locationbar: BarProp;
        menubar: BarProp;
        modalControl?: ModalControl;
        name: string;
        navigator: Navigator;
        nitroAds?: { loaded: boolean; createAd(id: string, props: unknown): void };
        onabort: (this: GlobalEventHandlers, ev: UIEvent) => any;
        onafterprint: (this: WindowEventHandlers, ev: Event) => any;
        onanimationcancel: (this: GlobalEventHandlers, ev: AnimationEvent) => any;
        onanimationend: (this: GlobalEventHandlers, ev: AnimationEvent) => any;
        onanimationiteration: (
            this: GlobalEventHandlers,
            ev: AnimationEvent,
        ) => any;
        onanimationstart: (this: GlobalEventHandlers, ev: AnimationEvent) => any;
        onauxclick: (this: GlobalEventHandlers, ev: PointerEvent) => any;
        onbeforeinput: (this: GlobalEventHandlers, ev: InputEvent) => any;
        onbeforematch: (this: GlobalEventHandlers, ev: Event) => any;
        onbeforeprint: (this: WindowEventHandlers, ev: Event) => any;
        onbeforetoggle: (this: GlobalEventHandlers, ev: ToggleEvent) => any;
        onbeforeunload: (this: WindowEventHandlers, ev: BeforeUnloadEvent) => any;
        onblur: (this: GlobalEventHandlers, ev: FocusEvent) => any;
        oncancel: (this: GlobalEventHandlers, ev: Event) => any;
        oncanplay: (this: GlobalEventHandlers, ev: Event) => any;
        oncanplaythrough: (this: GlobalEventHandlers, ev: Event) => any;
        onchange: (this: GlobalEventHandlers, ev: Event) => any;
        onclick: (this: GlobalEventHandlers, ev: PointerEvent) => any;
        onclose: (this: GlobalEventHandlers, ev: Event) => any;
        oncontextlost: (this: GlobalEventHandlers, ev: Event) => any;
        oncontextmenu: (this: GlobalEventHandlers, ev: PointerEvent) => any;
        oncontextrestored: (this: GlobalEventHandlers, ev: Event) => any;
        oncopy: (this: GlobalEventHandlers, ev: ClipboardEvent) => any;
        oncuechange: (this: GlobalEventHandlers, ev: Event) => any;
        oncut: (this: GlobalEventHandlers, ev: ClipboardEvent) => any;
        ondblclick: (this: GlobalEventHandlers, ev: MouseEvent) => any;
        ondevicemotion: (this: Window, ev: DeviceMotionEvent) => any;
        ondeviceorientation: (this: Window, ev: DeviceOrientationEvent) => any;
        ondeviceorientationabsolute: (
            this: Window,
            ev: DeviceOrientationEvent,
        ) => any;
        ondrag: (this: GlobalEventHandlers, ev: DragEvent) => any;
        ondragend: (this: GlobalEventHandlers, ev: DragEvent) => any;
        ondragenter: (this: GlobalEventHandlers, ev: DragEvent) => any;
        ondragleave: (this: GlobalEventHandlers, ev: DragEvent) => any;
        ondragover: (this: GlobalEventHandlers, ev: DragEvent) => any;
        ondragstart: (this: GlobalEventHandlers, ev: DragEvent) => any;
        ondrop: (this: GlobalEventHandlers, ev: DragEvent) => any;
        ondurationchange: (this: GlobalEventHandlers, ev: Event) => any;
        onemptied: (this: GlobalEventHandlers, ev: Event) => any;
        onended: (this: GlobalEventHandlers, ev: Event) => any;
        onerror: OnErrorEventHandlerNonNull;
        onfocus: (this: GlobalEventHandlers, ev: FocusEvent) => any;
        onformdata: (this: GlobalEventHandlers, ev: FormDataEvent) => any;
        ongamepadconnected: (this: WindowEventHandlers, ev: GamepadEvent) => any;
        ongamepaddisconnected: (this: WindowEventHandlers, ev: GamepadEvent) => any;
        ongotpointercapture: (this: GlobalEventHandlers, ev: PointerEvent) => any;
        onhashchange: (this: WindowEventHandlers, ev: HashChangeEvent) => any;
        oninput: (this: GlobalEventHandlers, ev: Event) => any;
        oninvalid: (this: GlobalEventHandlers, ev: Event) => any;
        onkeydown: (this: GlobalEventHandlers, ev: KeyboardEvent) => any;
        onkeypress: (this: GlobalEventHandlers, ev: KeyboardEvent) => any;
        onkeyup: (this: GlobalEventHandlers, ev: KeyboardEvent) => any;
        onlanguagechange: (this: WindowEventHandlers, ev: Event) => any;
        onload: (this: GlobalEventHandlers, ev: Event) => any;
        onloadeddata: (this: GlobalEventHandlers, ev: Event) => any;
        onloadedmetadata: (this: GlobalEventHandlers, ev: Event) => any;
        onloadstart: (this: GlobalEventHandlers, ev: Event) => any;
        onlostpointercapture: (this: GlobalEventHandlers, ev: PointerEvent) => any;
        onmessage: (this: WindowEventHandlers, ev: MessageEvent) => any;
        onmessageerror: (this: WindowEventHandlers, ev: MessageEvent) => any;
        onmousedown: (this: GlobalEventHandlers, ev: MouseEvent) => any;
        onmouseenter: (this: GlobalEventHandlers, ev: MouseEvent) => any;
        onmouseleave: (this: GlobalEventHandlers, ev: MouseEvent) => any;
        onmousemove: (this: GlobalEventHandlers, ev: MouseEvent) => any;
        onmouseout: (this: GlobalEventHandlers, ev: MouseEvent) => any;
        onmouseover: (this: GlobalEventHandlers, ev: MouseEvent) => any;
        onmouseup: (this: GlobalEventHandlers, ev: MouseEvent) => any;
        onoffline: (this: WindowEventHandlers, ev: Event) => any;
        ononline: (this: WindowEventHandlers, ev: Event) => any;
        onorientationchange: (this: Window, ev: Event) => any;
        onpagehide: (this: WindowEventHandlers, ev: PageTransitionEvent) => any;
        onpagereveal: (this: WindowEventHandlers, ev: PageRevealEvent) => any;
        onpageshow: (this: WindowEventHandlers, ev: PageTransitionEvent) => any;
        onpageswap: (this: WindowEventHandlers, ev: PageSwapEvent) => any;
        onpaste: (this: GlobalEventHandlers, ev: ClipboardEvent) => any;
        onpause: (this: GlobalEventHandlers, ev: Event) => any;
        onplay: (this: GlobalEventHandlers, ev: Event) => any;
        onplaying: (this: GlobalEventHandlers, ev: Event) => any;
        onpointercancel: (this: GlobalEventHandlers, ev: PointerEvent) => any;
        onpointerdown: (this: GlobalEventHandlers, ev: PointerEvent) => any;
        onpointerenter: (this: GlobalEventHandlers, ev: PointerEvent) => any;
        onpointerleave: (this: GlobalEventHandlers, ev: PointerEvent) => any;
        onpointermove: (this: GlobalEventHandlers, ev: PointerEvent) => any;
        onpointerout: (this: GlobalEventHandlers, ev: PointerEvent) => any;
        onpointerover: (this: GlobalEventHandlers, ev: PointerEvent) => any;
        onpointerrawupdate: (this: GlobalEventHandlers, ev: Event) => any;
        onpointerup: (this: GlobalEventHandlers, ev: PointerEvent) => any;
        onpopstate: (this: WindowEventHandlers, ev: PopStateEvent) => any;
        onprogress: (this: GlobalEventHandlers, ev: ProgressEvent) => any;
        onratechange: (this: GlobalEventHandlers, ev: Event) => any;
        onrejectionhandled: (
            this: WindowEventHandlers,
            ev: PromiseRejectionEvent,
        ) => any;
        onreset: (this: GlobalEventHandlers, ev: Event) => any;
        onresize: (this: GlobalEventHandlers, ev: UIEvent) => any;
        onscroll: (this: GlobalEventHandlers, ev: Event) => any;
        onscrollend: (this: GlobalEventHandlers, ev: Event) => any;
        onsecuritypolicyviolation: (
            this: GlobalEventHandlers,
            ev: SecurityPolicyViolationEvent,
        ) => any;
        onseeked: (this: GlobalEventHandlers, ev: Event) => any;
        onseeking: (this: GlobalEventHandlers, ev: Event) => any;
        onselect: (this: GlobalEventHandlers, ev: Event) => any;
        onselectionchange: (this: GlobalEventHandlers, ev: Event) => any;
        onselectstart: (this: GlobalEventHandlers, ev: Event) => any;
        onslotchange: (this: GlobalEventHandlers, ev: Event) => any;
        onstalled: (this: GlobalEventHandlers, ev: Event) => any;
        onstorage: (this: WindowEventHandlers, ev: StorageEvent) => any;
        onsubmit: (this: GlobalEventHandlers, ev: SubmitEvent) => any;
        onsuspend: (this: GlobalEventHandlers, ev: Event) => any;
        ontimeupdate: (this: GlobalEventHandlers, ev: Event) => any;
        ontoggle: (this: GlobalEventHandlers, ev: ToggleEvent) => any;
        ontouchcancel?: (this: GlobalEventHandlers, ev: TouchEvent) => any;
        ontouchend?: (this: GlobalEventHandlers, ev: TouchEvent) => any;
        ontouchmove?: (this: GlobalEventHandlers, ev: TouchEvent) => any;
        ontouchstart?: (this: GlobalEventHandlers, ev: TouchEvent) => any;
        ontransitioncancel: (this: GlobalEventHandlers, ev: TransitionEvent) => any;
        ontransitionend: (this: GlobalEventHandlers, ev: TransitionEvent) => any;
        ontransitionrun: (this: GlobalEventHandlers, ev: TransitionEvent) => any;
        ontransitionstart: (this: GlobalEventHandlers, ev: TransitionEvent) => any;
        onunhandledrejection: (
            this: WindowEventHandlers,
            ev: PromiseRejectionEvent,
        ) => any;
        onunload: (this: WindowEventHandlers, ev: Event) => any;
        onvolumechange: (this: GlobalEventHandlers, ev: Event) => any;
        onwaiting: (this: GlobalEventHandlers, ev: Event) => any;
        onwebkitanimationend: (this: GlobalEventHandlers, ev: Event) => any;
        onwebkitanimationiteration: (this: GlobalEventHandlers, ev: Event) => any;
        onwebkitanimationstart: (this: GlobalEventHandlers, ev: Event) => any;
        onwebkittransitionend: (this: GlobalEventHandlers, ev: Event) => any;
        onwheel: (this: GlobalEventHandlers, ev: WheelEvent) => any;
        opener: any;
        orientation: number;
        origin: string;
        originAgentCluster: boolean;
        outerHeight: number;
        outerWidth: number;
        pageXOffset: number;
        pageYOffset: number;
        parent: Window;
        parentSheet?: GearPlanSheetGui;
        performance: Performance;
        personalbar: BarProp;
        run: () => void;
        screen: Screen;
        screenLeft: number;
        screenTop: number;
        screenX: number;
        screenY: number;
        scrollbars: BarProp;
        scrollX: number;
        scrollY: number;
        self: Window & typeof globalThis;
        sessionStorage: Storage;
        setup: HookFunction;
        showAccountModal?: () => void;
        specify: TestFunction;
        speechSynthesis: SpeechSynthesis;
        startExport: (sheet: GearPlanSheet | CharacterGearSet) => void;
        status: string;
        statusbar: BarProp;
        suite: SuiteFunction;
        suiteSetup: HookFunction;
        suiteTeardown: HookFunction;
        teardown: HookFunction;
        test: TestFunction;
        toolbar: BarProp;
        top: Window;
        umami: SafeUmami;
        userDataSyncer?: UserDataSyncer;
        visualViewport: VisualViewport;
        window: Window & typeof globalThis;
        workerPool: WorkerPool;
        xcontext: PendingSuiteFunction;
        xdescribe: PendingSuiteFunction;
        xit: PendingTestFunction;
        xivgearLoadStarted?: boolean;
        xivgearSettings: PersistentSettings;
        xspecify: PendingTestFunction;
        get location(): Location;
        set location(href: string): void;
        __cmp(...args: unknown[]): void;
        __uspapi(...args: unknown[]): void;
        addEventListener<K extends keyof WindowEventMap>(
            type: K,
            listener: (this: Window, ev: WindowEventMap[K]) => any,
            options?: boolean | AddEventListenerOptions,
        ): void;
        addEventListener(
            type: string,
            listener: EventListenerOrEventListenerObject,
            options?: boolean | AddEventListenerOptions,
        ): void;
        alert(message?: any): void;
        atob(data: string): string;
        blur(): void;
        btoa(data: string): string;
        cancelAnimationFrame(handle: number): void;
        cancelIdleCallback(handle: number): void;
        captureEvents(): void;
        clearInterval(id: number): void;
        clearTimeout(id: number): void;
        close(): void;
        confirm(message?: string): boolean;
        createImageBitmap(
            image: ImageBitmapSource,
            options?: ImageBitmapOptions,
        ): Promise<ImageBitmap>;
        createImageBitmap(
            image: ImageBitmapSource,
            sx: number,
            sy: number,
            sw: number,
            sh: number,
            options?: ImageBitmapOptions,
        ): Promise<ImageBitmap>;
        dispatchEvent(event: Event): boolean;
        fetch(input: URL | RequestInfo, init?: RequestInit): Promise<Response>;
        focus(): void;
        getComputedStyle(elt: Element, pseudoElt?: string): CSSStyleDeclaration;
        getSelection(): Selection;
        matchMedia(query: string): MediaQueryList;
        moveBy(x: number, y: number): void;
        moveTo(x: number, y: number): void;
        open(url?: string | URL, target?: string, features?: string): Window;
        postMessage(
            message: any,
            targetOrigin: string,
            transfer?: Transferable[],
        ): void;
        postMessage(message: any, options?: WindowPostMessageOptions): void;
        print(): void;
        prompt(message?: string, _default?: string): string;
        queueMicrotask(callback: VoidFunction): void;
        recheckAds(): void;
        releaseEvents(): void;
        removeEventListener<K extends keyof WindowEventMap>(
            type: K,
            listener: (this: Window, ev: WindowEventMap[K]) => any,
            options?: boolean | EventListenerOptions,
        ): void;
        removeEventListener(
            type: string,
            listener: EventListenerOrEventListenerObject,
            options?: boolean | EventListenerOptions,
        ): void;
        reportError(e: any): void;
        requestAnimationFrame(callback: FrameRequestCallback): number;
        requestIdleCallback(
            callback: IdleRequestCallback,
            options?: IdleRequestOptions,
        ): number;
        resizeBy(x: number, y: number): void;
        resizeTo(width: number, height: number): void;
        scroll(options?: ScrollToOptions): void;
        scroll(x: number, y: number): void;
        scrollBy(options?: ScrollToOptions): void;
        scrollBy(x: number, y: number): void;
        scrollTo(options?: ScrollToOptions): void;
        scrollTo(x: number, y: number): void;
        setInterval(
            handler: TimerHandler,
            timeout?: number,
            ...arguments: any[],
        ): number;
        setTimeout(
            handler: TimerHandler,
            timeout?: number,
            ...arguments: any[],
        ): number;
        stop(): void;
        structuredClone<T = any>(value: T, options?: StructuredSerializeOptions): T;
        [index: number]: Window;
    }

    Hierarchy

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

    Indexable

    Index

    Properties

    accStateTracker? after afterEach before beforeEach caches clientInformation closed context cookieStore crossOriginIsolated crypto currentAds? currentGearSet? currentSheet? customElements describe devicePixelRatio document event external frameElement frames history indexedDB innerHeight innerWidth isSecureContext it length localStorage locationbar menubar modalControl? name navigator nitroAds? onabort onafterprint onanimationcancel onanimationend onanimationiteration onanimationstart onauxclick onbeforeinput onbeforematch onbeforeprint onbeforetoggle onbeforeunload onblur oncancel oncanplay oncanplaythrough onchange onclick onclose oncontextlost oncontextmenu oncontextrestored oncopy oncuechange oncut ondblclick ondevicemotion ondeviceorientation ondeviceorientationabsolute 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 onpagereveal onpageshow onpageswap onpaste onpause onplay onplaying onpointercancel onpointerdown onpointerenter onpointerleave onpointermove onpointerout onpointerover onpointerrawupdate onpointerup onpopstate onprogress onratechange onrejectionhandled onreset onresize onscroll onscrollend 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 opener orientation origin originAgentCluster outerHeight outerWidth pageXOffset pageYOffset parent parentSheet? performance personalbar run screen screenLeft screenTop screenX screenY scrollbars scrollX scrollY self sessionStorage setup showAccountModal? specify speechSynthesis startExport status statusbar suite suiteSetup suiteTeardown teardown test toolbar top umami userDataSyncer? visualViewport window workerPool xcontext xdescribe xit xivgearLoadStarted? xivgearSettings xspecify

    Accessors

    Methods

    Properties

    accStateTracker?: AccountStateTracker
    after: HookFunction

    Execute after running tests.

    • Only available when invoked via the mocha CLI.
    afterEach: HookFunction

    Execute after each test case.

    • Only available when invoked via the mocha CLI.
    before: HookFunction

    Execute before running tests.

    • Only available when invoked via the mocha CLI.
    beforeEach: HookFunction

    Execute before each test case.

    • Only available when invoked via the mocha CLI.
    caches: CacheStorage

    Available only in secure contexts.

    MDN Reference

    clientInformation: Navigator

    This is a legacy alias of navigator.

    MDN Reference

    closed: boolean

    The Window.closed read-only property indicates whether the referenced window is closed or not.

    MDN Reference

    context: SuiteFunction

    Describe a "suite" containing nested suites and tests.

    • Only available when invoked via the mocha CLI.
    cookieStore: CookieStore

    The cookieStore read-only property of the Window interface returns a reference to the CookieStore object for the current document context.

    MDN Reference

    crossOriginIsolated: boolean
    crypto: Crypto
    currentAds?: ManagedAd[]
    currentGearSet?: CharacterGearSet
    currentSheet?: GearPlanSheetGui
    customElements: CustomElementRegistry

    The customElements read-only property of the Window interface returns a reference to the CustomElementRegistry object, which can be used to register new custom elements and get information about previously registered custom elements.

    MDN Reference

    describe: SuiteFunction

    Describe a "suite" containing nested suites and tests.

    • Only available when invoked via the mocha CLI.
    devicePixelRatio: number

    The devicePixelRatio of Window interface returns the ratio of the resolution in physical pixels to the resolution in CSS pixels for the current display device.

    MDN Reference

    document: Document

    window.document returns a reference to the document contained in the window.

    MDN Reference

    event: Event

    The read-only Window property event returns the Event which is currently being handled by the site's code.

    MDN Reference

    external: External

    The external property of the Window API returns an instance of the External interface, which was intended to contain functions related to adding external search providers to the browser.

    MDN Reference

    frameElement: Element

    The Window.frameElement property returns the element (such as iframe or object) in which the window is embedded.

    MDN Reference

    frames: Window

    Returns the window itself, which is an array-like object, listing the direct sub-frames of the current window.

    MDN Reference

    history: History

    The Window.history read-only property returns a reference to the History object, which provides an interface for manipulating the browser session history (pages visited in the tab or frame that the current page is loaded in).

    MDN Reference

    indexedDB: IDBFactory
    innerHeight: number

    The read-only innerHeight property of the including the height of the horizontal scroll bar, if present.

    MDN Reference

    innerWidth: number

    The read-only Window property innerWidth returns the interior width of the window in pixels (that is, the width of the window's layout viewport).

    MDN Reference

    isSecureContext: boolean
    it: TestFunction

    Describes a test case.

    • Only available when invoked via the mocha CLI.
    length: number

    Returns the number of frames (either frame or A number.

    MDN Reference

    localStorage: Storage
    locationbar: BarProp

    Returns the locationbar object.

    MDN Reference

    menubar: BarProp

    Returns the menubar object.

    MDN Reference

    modalControl?: ModalControl
    name: string

    The Window.name property gets/sets the name of the window's browsing context.

    MDN Reference

    navigator: Navigator

    The Window.navigator read-only property returns a reference to the Navigator object, which has methods and properties about the application running the script.

    MDN Reference

    nitroAds?: { loaded: boolean; createAd(id: string, props: unknown): void }
    onabort: (this: GlobalEventHandlers, ev: UIEvent) => any
    onafterprint: (this: WindowEventHandlers, ev: Event) => any
    onanimationcancel: (this: GlobalEventHandlers, ev: AnimationEvent) => any
    onanimationend: (this: GlobalEventHandlers, ev: AnimationEvent) => any
    onanimationiteration: (this: GlobalEventHandlers, ev: AnimationEvent) => any
    onanimationstart: (this: GlobalEventHandlers, ev: AnimationEvent) => any
    onauxclick: (this: GlobalEventHandlers, ev: PointerEvent) => any
    onbeforeinput: (this: GlobalEventHandlers, ev: InputEvent) => any
    onbeforematch: (this: GlobalEventHandlers, ev: Event) => any
    onbeforeprint: (this: WindowEventHandlers, ev: Event) => any
    onbeforetoggle: (this: GlobalEventHandlers, ev: ToggleEvent) => any
    onbeforeunload: (this: WindowEventHandlers, ev: BeforeUnloadEvent) => any
    onblur: (this: GlobalEventHandlers, ev: FocusEvent) => any
    oncancel: (this: GlobalEventHandlers, ev: Event) => any
    oncanplay: (this: GlobalEventHandlers, ev: Event) => any
    oncanplaythrough: (this: GlobalEventHandlers, ev: Event) => any
    onchange: (this: GlobalEventHandlers, ev: Event) => any
    onclick: (this: GlobalEventHandlers, ev: PointerEvent) => any
    onclose: (this: GlobalEventHandlers, ev: Event) => any
    oncontextlost: (this: GlobalEventHandlers, ev: Event) => any
    oncontextmenu: (this: GlobalEventHandlers, ev: PointerEvent) => any
    oncontextrestored: (this: GlobalEventHandlers, ev: Event) => any
    oncopy: (this: GlobalEventHandlers, ev: ClipboardEvent) => any
    oncuechange: (this: GlobalEventHandlers, ev: Event) => any
    oncut: (this: GlobalEventHandlers, ev: ClipboardEvent) => any
    ondblclick: (this: GlobalEventHandlers, ev: MouseEvent) => any
    ondevicemotion: (this: Window, ev: DeviceMotionEvent) => any

    Available only in secure contexts.

    MDN Reference

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

    Available only in secure contexts.

    MDN Reference

    ondeviceorientationabsolute: (this: Window, ev: DeviceOrientationEvent) => any

    Available only in secure contexts.

    MDN Reference

    ondrag: (this: GlobalEventHandlers, ev: DragEvent) => any
    ondragend: (this: GlobalEventHandlers, ev: DragEvent) => any
    ondragenter: (this: GlobalEventHandlers, ev: DragEvent) => any
    ondragleave: (this: GlobalEventHandlers, ev: DragEvent) => any
    ondragover: (this: GlobalEventHandlers, ev: DragEvent) => any
    ondragstart: (this: GlobalEventHandlers, ev: DragEvent) => any
    ondrop: (this: GlobalEventHandlers, ev: DragEvent) => any
    ondurationchange: (this: GlobalEventHandlers, ev: Event) => any
    onemptied: (this: GlobalEventHandlers, ev: Event) => any
    onended: (this: GlobalEventHandlers, ev: Event) => any
    onerror: OnErrorEventHandlerNonNull
    onfocus: (this: GlobalEventHandlers, ev: FocusEvent) => any
    onformdata: (this: GlobalEventHandlers, ev: FormDataEvent) => any
    ongamepadconnected: (this: WindowEventHandlers, ev: GamepadEvent) => any
    ongamepaddisconnected: (this: WindowEventHandlers, ev: GamepadEvent) => any
    ongotpointercapture: (this: GlobalEventHandlers, ev: PointerEvent) => any
    onhashchange: (this: WindowEventHandlers, ev: HashChangeEvent) => any
    oninput: (this: GlobalEventHandlers, ev: Event) => any
    oninvalid: (this: GlobalEventHandlers, ev: Event) => any
    onkeydown: (this: GlobalEventHandlers, ev: KeyboardEvent) => any
    onkeypress: (this: GlobalEventHandlers, ev: KeyboardEvent) => any

    MDN Reference

    onkeyup: (this: GlobalEventHandlers, ev: KeyboardEvent) => any
    onlanguagechange: (this: WindowEventHandlers, ev: Event) => any
    onload: (this: GlobalEventHandlers, ev: Event) => any
    onloadeddata: (this: GlobalEventHandlers, ev: Event) => any
    onloadedmetadata: (this: GlobalEventHandlers, ev: Event) => any
    onloadstart: (this: GlobalEventHandlers, ev: Event) => any
    onlostpointercapture: (this: GlobalEventHandlers, ev: PointerEvent) => any
    onmessage: (this: WindowEventHandlers, ev: MessageEvent) => any
    onmessageerror: (this: WindowEventHandlers, ev: MessageEvent) => any
    onmousedown: (this: GlobalEventHandlers, ev: MouseEvent) => any
    onmouseenter: (this: GlobalEventHandlers, ev: MouseEvent) => any
    onmouseleave: (this: GlobalEventHandlers, ev: MouseEvent) => any
    onmousemove: (this: GlobalEventHandlers, ev: MouseEvent) => any
    onmouseout: (this: GlobalEventHandlers, ev: MouseEvent) => any
    onmouseover: (this: GlobalEventHandlers, ev: MouseEvent) => any
    onmouseup: (this: GlobalEventHandlers, ev: MouseEvent) => any
    onoffline: (this: WindowEventHandlers, ev: Event) => any
    ononline: (this: WindowEventHandlers, ev: Event) => any
    onorientationchange: (this: Window, ev: Event) => any

    MDN Reference

    onpagehide: (this: WindowEventHandlers, ev: PageTransitionEvent) => any
    onpagereveal: (this: WindowEventHandlers, ev: PageRevealEvent) => any
    onpageshow: (this: WindowEventHandlers, ev: PageTransitionEvent) => any
    onpageswap: (this: WindowEventHandlers, ev: PageSwapEvent) => any
    onpaste: (this: GlobalEventHandlers, ev: ClipboardEvent) => any
    onpause: (this: GlobalEventHandlers, ev: Event) => any
    onplay: (this: GlobalEventHandlers, ev: Event) => any
    onplaying: (this: GlobalEventHandlers, ev: Event) => any
    onpointercancel: (this: GlobalEventHandlers, ev: PointerEvent) => any
    onpointerdown: (this: GlobalEventHandlers, ev: PointerEvent) => any
    onpointerenter: (this: GlobalEventHandlers, ev: PointerEvent) => any
    onpointerleave: (this: GlobalEventHandlers, ev: PointerEvent) => any
    onpointermove: (this: GlobalEventHandlers, ev: PointerEvent) => any
    onpointerout: (this: GlobalEventHandlers, ev: PointerEvent) => any
    onpointerover: (this: GlobalEventHandlers, ev: PointerEvent) => any
    onpointerrawupdate: (this: GlobalEventHandlers, ev: Event) => any

    Available only in secure contexts.

    MDN Reference

    onpointerup: (this: GlobalEventHandlers, ev: PointerEvent) => any
    onpopstate: (this: WindowEventHandlers, ev: PopStateEvent) => any
    onprogress: (this: GlobalEventHandlers, ev: ProgressEvent) => any
    onratechange: (this: GlobalEventHandlers, ev: Event) => any
    onrejectionhandled: (
        this: WindowEventHandlers,
        ev: PromiseRejectionEvent,
    ) => any
    onreset: (this: GlobalEventHandlers, ev: Event) => any
    onresize: (this: GlobalEventHandlers, ev: UIEvent) => any
    onscroll: (this: GlobalEventHandlers, ev: Event) => any
    onscrollend: (this: GlobalEventHandlers, ev: Event) => any
    onsecuritypolicyviolation: (
        this: GlobalEventHandlers,
        ev: SecurityPolicyViolationEvent,
    ) => any
    onseeked: (this: GlobalEventHandlers, ev: Event) => any
    onseeking: (this: GlobalEventHandlers, ev: Event) => any
    onselect: (this: GlobalEventHandlers, ev: Event) => any
    onselectionchange: (this: GlobalEventHandlers, ev: Event) => any
    onselectstart: (this: GlobalEventHandlers, ev: Event) => any
    onslotchange: (this: GlobalEventHandlers, ev: Event) => any
    onstalled: (this: GlobalEventHandlers, ev: Event) => any
    onstorage: (this: WindowEventHandlers, ev: StorageEvent) => any
    onsubmit: (this: GlobalEventHandlers, ev: SubmitEvent) => any
    onsuspend: (this: GlobalEventHandlers, ev: Event) => any
    ontimeupdate: (this: GlobalEventHandlers, ev: Event) => any
    ontoggle: (this: GlobalEventHandlers, ev: ToggleEvent) => any
    ontouchcancel?: (this: GlobalEventHandlers, ev: TouchEvent) => any
    ontouchend?: (this: GlobalEventHandlers, ev: TouchEvent) => any
    ontouchmove?: (this: GlobalEventHandlers, ev: TouchEvent) => any
    ontouchstart?: (this: GlobalEventHandlers, ev: TouchEvent) => any
    ontransitioncancel: (this: GlobalEventHandlers, ev: TransitionEvent) => any
    ontransitionend: (this: GlobalEventHandlers, ev: TransitionEvent) => any
    ontransitionrun: (this: GlobalEventHandlers, ev: TransitionEvent) => any
    ontransitionstart: (this: GlobalEventHandlers, ev: TransitionEvent) => any
    onunhandledrejection: (
        this: WindowEventHandlers,
        ev: PromiseRejectionEvent,
    ) => any
    onunload: (this: WindowEventHandlers, ev: Event) => any

    MDN Reference

    onvolumechange: (this: GlobalEventHandlers, ev: Event) => any
    onwaiting: (this: GlobalEventHandlers, ev: Event) => any
    onwebkitanimationend: (this: GlobalEventHandlers, ev: Event) => any

    This is a legacy alias of onanimationend.

    MDN Reference

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

    This is a legacy alias of onanimationiteration.

    MDN Reference

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

    This is a legacy alias of onanimationstart.

    MDN Reference

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

    This is a legacy alias of ontransitionend.

    MDN Reference

    onwheel: (this: GlobalEventHandlers, ev: WheelEvent) => any
    opener: any

    The Window interface's opener property returns a reference to the window that opened the window, either with Window.open, or by navigating a link with a target attribute.

    MDN Reference

    orientation: number

    Returns the orientation in degrees (in 90-degree increments) of the viewport relative to the device's natural orientation.

    MDN Reference

    origin: string
    originAgentCluster: boolean

    The originAgentCluster read-only property of the Window interface returns true if this window belongs to an origin-keyed agent cluster: this means that the operating system has provided dedicated resources (for example an operating system process) to this window's origin that are not shared with windows from other origins.

    MDN Reference

    outerHeight: number

    The Window.outerHeight read-only property returns the height in pixels of the whole browser window, including any sidebar, window chrome, and window-resizing borders/handles.

    MDN Reference

    outerWidth: number

    Window.outerWidth read-only property returns the width of the outside of the browser window.

    MDN Reference

    pageXOffset: number
    pageYOffset: number
    parent: Window

    The Window.parent property is a reference to the parent of the current window or subframe.

    MDN Reference

    parentSheet?: GearPlanSheetGui
    performance: Performance
    personalbar: BarProp

    Returns the personalbar object.

    MDN Reference

    run: () => void

    Type Declaration

    screen: Screen

    The Window property screen returns a reference to the screen object associated with the window.

    MDN Reference

    screenLeft: number

    The Window.screenLeft read-only property returns the horizontal distance, in CSS pixels, from the left border of the user's browser viewport to the left side of the screen.

    MDN Reference

    screenTop: number

    The Window.screenTop read-only property returns the vertical distance, in CSS pixels, from the top border of the user's browser viewport to the top side of the screen.

    MDN Reference

    screenX: number

    The Window.screenX read-only property returns the horizontal distance, in CSS pixels, of the left border of the user's browser viewport to the left side of the screen.

    MDN Reference

    screenY: number

    The Window.screenY read-only property returns the vertical distance, in CSS pixels, of the top border of the user's browser viewport to the top edge of the screen.

    MDN Reference

    scrollbars: BarProp

    Returns the scrollbars object.

    MDN Reference

    scrollX: number

    The read-only scrollX property of the Window interface returns the number of pixels by which the document is currently scrolled horizontally.

    MDN Reference

    scrollY: number

    The read-only scrollY property of the Window interface returns the number of pixels by which the document is currently scrolled vertically.

    MDN Reference

    self: Window & typeof globalThis

    The Window.self read-only property returns the window itself, as a WindowProxy.

    MDN Reference

    sessionStorage: Storage
    setup: HookFunction

    Execute before each test case.

    • Only available when invoked via the mocha CLI.
    showAccountModal?: () => void
    specify: TestFunction

    Describes a test case.

    • Only available when invoked via the mocha CLI.
    speechSynthesis: SpeechSynthesis

    The speechSynthesis read-only property of the Window object returns a SpeechSynthesis object, which is the entry point into using Web Speech API speech synthesis functionality.

    MDN Reference

    startExport: (sheet: GearPlanSheet | CharacterGearSet) => void
    status: string

    The status property of the bar at the bottom of the browser window.

    MDN Reference

    statusbar: BarProp

    Returns the statusbar object.

    MDN Reference

    suite: SuiteFunction

    Describe a "suite" containing nested suites and tests.

    • Only available when invoked via the mocha CLI.
    suiteSetup: HookFunction

    Execute before running tests.

    • Only available when invoked via the mocha CLI.
    suiteTeardown: HookFunction

    Execute after running tests.

    • Only available when invoked via the mocha CLI.
    teardown: HookFunction

    Execute after each test case.

    • Only available when invoked via the mocha CLI.
    test: TestFunction

    Describes a test case.

    • Only available when invoked via the mocha CLI.
    toolbar: BarProp

    Returns the toolbar object.

    MDN Reference

    top: Window

    Returns a reference to the topmost window in the window hierarchy.

    MDN Reference

    umami: SafeUmami
    userDataSyncer?: UserDataSyncer
    visualViewport: VisualViewport

    The visualViewport read-only property of the Window interface returns a VisualViewport object representing the visual viewport for a given window, or null if current document is not fully active.

    MDN Reference

    window: Window & typeof globalThis

    The window property of a Window object points to the window object itself.

    MDN Reference

    workerPool: WorkerPool
    xcontext: PendingSuiteFunction

    Pending suite.

    • Only available when invoked via the mocha CLI.
    xdescribe: PendingSuiteFunction

    Pending suite.

    • Only available when invoked via the mocha CLI.
    xit: PendingTestFunction

    Describes a pending test case.

    • Only available when invoked via the mocha CLI.
    xivgearLoadStarted?: boolean
    xivgearSettings: PersistentSettings
    xspecify: PendingTestFunction

    Describes a pending test case.

    • Only available when invoked via the mocha CLI.

    Accessors

    • get location(): Location

      The Window.location read-only property returns a Location object with information about the current location of the document.

      MDN Reference

      Returns Location

    • set location(href: string): void

      Parameters

      • href: string

      Returns void

    Methods

    • The addEventListener() method of the EventTarget interface sets up a function that will be called whenever the specified event is delivered to the target.

      MDN Reference

      Type Parameters

      • K extends keyof WindowEventMap

      Parameters

      • type: K
      • listener: (this: Window, ev: WindowEventMap[K]) => any
      • Optionaloptions: boolean | AddEventListenerOptions

      Returns void

    • The addEventListener() method of the EventTarget interface sets up a function that will be called whenever the specified event is delivered to the target.

      MDN Reference

      Parameters

      • type: string
      • listener: EventListenerOrEventListenerObject
      • Optionaloptions: boolean | AddEventListenerOptions

      Returns void

    • window.alert() instructs the browser to display a dialog with an optional message, and to wait until the user dismisses the dialog.

      MDN Reference

      Parameters

      • Optionalmessage: any

      Returns void

    • Parameters

      • data: string

      Returns string

    • The Window.blur() method does nothing.

      Returns void

      MDN Reference

    • Parameters

      • data: string

      Returns string

    • Parameters

      • handle: number

      Returns void

    • The window.cancelIdleCallback() method cancels a callback previously scheduled with window.requestIdleCallback().

      MDN Reference

      Parameters

      • handle: number

      Returns void

    • The Window.captureEvents() method does nothing.

      Returns void

      MDN Reference

    • Parameters

      • id: number

      Returns void

    • Parameters

      • id: number

      Returns void

    • The Window.close() method closes the current window, or the window on which it was called.

      MDN Reference

      Returns void

    • window.confirm() instructs the browser to display a dialog with an optional message, and to wait until the user either confirms or cancels the dialog.

      MDN Reference

      Parameters

      • Optionalmessage: string

      Returns boolean

    • Parameters

      • image: ImageBitmapSource
      • Optionaloptions: ImageBitmapOptions

      Returns Promise<ImageBitmap>

    • Parameters

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

      Returns Promise<ImageBitmap>

    • The dispatchEvent() method of the EventTarget sends an Event to the object, (synchronously) invoking the affected event listeners in the appropriate order.

      MDN Reference

      Parameters

      • event: Event

      Returns boolean

    • Parameters

      • input: URL | RequestInfo
      • Optionalinit: RequestInit

      Returns Promise<Response>

    • Makes a request to bring the window to the front.

      MDN Reference

      Returns void

    • The Window.getComputedStyle() method returns an object containing the values of all CSS properties of an element, after applying active stylesheets and resolving any basic computation those values may contain.

      MDN Reference

      Parameters

      • elt: Element
      • OptionalpseudoElt: string

      Returns CSSStyleDeclaration

    • The getSelection() method of the Window interface returns the Selection object associated with the window's document, representing the range of text selected by the user or the current position of the caret.

      MDN Reference

      Returns Selection

    • The Window interface's matchMedia() method returns a new MediaQueryList object that can then be used to determine if the document matches the media query string, as well as to monitor the document to detect when it matches (or stops matching) that media query.

      MDN Reference

      Parameters

      • query: string

      Returns MediaQueryList

    • The moveBy() method of the Window interface moves the current window by a specified amount.

      MDN Reference

      Parameters

      • x: number
      • y: number

      Returns void

    • The moveTo() method of the Window interface moves the current window to the specified coordinates.

      MDN Reference

      Parameters

      • x: number
      • y: number

      Returns void

    • The open() method of the Window interface loads a specified resource into a new or existing browsing context (that is, a tab, a window, or an iframe) under a specified name.

      MDN Reference

      Parameters

      • Optionalurl: string | URL
      • Optionaltarget: string
      • Optionalfeatures: string

      Returns Window

    • The window.postMessage() method safely enables cross-origin communication between Window objects; e.g., between a page and a pop-up that it spawned, or between a page and an iframe embedded within it.

      MDN Reference

      Parameters

      • message: any
      • targetOrigin: string
      • Optionaltransfer: Transferable[]

      Returns void

    • Parameters

      • message: any
      • Optionaloptions: WindowPostMessageOptions

      Returns void

    • Opens the print dialog to print the current document.

      MDN Reference

      Returns void

    • window.prompt() instructs the browser to display a dialog with an optional message prompting the user to input some text, and to wait until the user either submits the text or cancels the dialog.

      MDN Reference

      Parameters

      • Optionalmessage: string
      • Optional_default: string

      Returns string

    • Parameters

      • callback: VoidFunction

      Returns void

    • Releases the window from trapping events of a specific type.

      Returns void

      MDN Reference

    • The removeEventListener() method of the EventTarget interface removes an event listener previously registered with EventTarget.addEventListener() from the target.

      MDN Reference

      Type Parameters

      • K extends keyof WindowEventMap

      Parameters

      • type: K
      • listener: (this: Window, ev: WindowEventMap[K]) => any
      • Optionaloptions: boolean | EventListenerOptions

      Returns void

    • The removeEventListener() method of the EventTarget interface removes an event listener previously registered with EventTarget.addEventListener() from the target.

      MDN Reference

      Parameters

      • type: string
      • listener: EventListenerOrEventListenerObject
      • Optionaloptions: boolean | EventListenerOptions

      Returns void

    • Parameters

      • e: any

      Returns void

    • Parameters

      • callback: FrameRequestCallback

      Returns number

    • The window.requestIdleCallback() method queues a function to be called during a browser's idle periods.

      MDN Reference

      Parameters

      • callback: IdleRequestCallback
      • Optionaloptions: IdleRequestOptions

      Returns number

    • The Window.resizeBy() method resizes the current window by a specified amount.

      MDN Reference

      Parameters

      • x: number
      • y: number

      Returns void

    • The Window.resizeTo() method dynamically resizes the window.

      MDN Reference

      Parameters

      • width: number
      • height: number

      Returns void

    • The Window.scroll() method scrolls the window to a particular place in the document.

      MDN Reference

      Parameters

      • Optionaloptions: ScrollToOptions

      Returns void

    • Parameters

      • x: number
      • y: number

      Returns void

    • The Window.scrollBy() method scrolls the document in the window by the given amount.

      MDN Reference

      Parameters

      • Optionaloptions: ScrollToOptions

      Returns void

    • Parameters

      • x: number
      • y: number

      Returns void

    • Window.scrollTo() scrolls to a particular set of coordinates in the document.

      MDN Reference

      Parameters

      • Optionaloptions: ScrollToOptions

      Returns void

    • Parameters

      • x: number
      • y: number

      Returns void

    • Parameters

      • handler: TimerHandler
      • Optionaltimeout: number
      • ...arguments: any[]

      Returns number

    • Parameters

      • handler: TimerHandler
      • Optionaltimeout: number
      • ...arguments: any[]

      Returns number

    • The window.stop() stops further resource loading in the current browsing context, equivalent to the stop button in the browser.

      MDN Reference

      Returns void

    • Type Parameters

      • T = any

      Parameters

      • value: T
      • Optionaloptions: StructuredSerializeOptions

      Returns T