Window

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

A window for a given document can be obtained using the document.defaultView property.

A global variable, window, representing the window in which the script is running, is exposed to JavaScript code.

The Window interface is home to a variety of functions, namespaces, objects, and constructors which are not necessarily directly associated with the concept of a user interface window. However, the Window interface is a suitable place to include these items that need to be globally available. Many of these are documented in the JavaScript Reference and the DOM Reference.

In a tabbed browser, each tab is represented by its own Window object; the global window seen by JavaScript code running within a given tab always represents the tab in which the code is running. That said, even in a tabbed browser, some properties and methods still apply to the overall window that contains the tab, such as resizeTo() and innerHeight. Generally, anything that can't reasonably pertain to a tab pertains to the window instead.

Constructors

See also the DOM Interfaces.

DOMParser

DOMParser can parse XML or HTML source stored in a string into a DOM Document. DOMParser is specified in DOM Parsing and Serialization.

HTMLImageElement.Image

Used for creating an HTMLImageElement.

HTMLOptionElement.Option

Used for creating an HTMLOptionElement.

StaticRange Read only

Returns a StaticRange() constructor which creates a StaticRange object.

Worker

Used for creating a Web worker.

XMLSerializer

Converts a DOM tree into XML or HTML source.

Properties

This interface inherits properties from the EventTarget interface and implements properties from the WindowOrWorkerGlobalScope and WindowEventHandlers mixins.

Note that properties which are objects (e.g.,. for overriding the prototype of built-in elements) are listed in a separate section below.

Window.clientInformation Read only

An alias for Window.navigator.

Window.closed Read only

This property indicates whether the current window is closed or not.

Window.console Read only

Returns a reference to the console object which provides access to the browser's debugging console.

Window.customElements Read only

Returns a reference to the CustomElementRegistry object, which can be used to register new custom elements and get information about previously registered custom elements.

Window.crypto Read only

Returns the browser crypto object.

Window.devicePixelRatio Read only

Returns the ratio between physical pixels and device independent pixels in the current display.

Window.document Read only

Returns a reference to the document that the window contains.

Window.DOMMatrix Read only

Returns a reference to a DOMMatrix object, which represents 4x4 matrices, suitable for 2D and 3D operations.

Window.DOMMatrixReadOnly Read only

Returns a reference to a DOMMatrixReadOnly object, which represents 4x4 matrices, suitable for 2D and 3D operations.

Window.DOMPoint Read only

Returns a reference to a DOMPoint object, which represents a 2D or 3D point in a coordinate system.

Window.DOMPointReadOnly Read only

Returns a reference to a DOMPointReadOnly object, which represents a 2D or 3D point in a coordinate system.

Window.DOMQuad Read only

Returns a reference to a DOMQuad object, which provides represents a quadrilaterial object, that is one having four corners and four sides.

Window.DOMRect Read only

Returns a reference to a DOMRect object, which represents a rectangle.

Window.DOMRectReadOnly Read only

Returns a reference to a DOMRectReadOnly object, which represents a rectangle.

Window.event Read only

Returns the current event, which is the event currently being handled by the JavaScript code's context, or undefined if no event is currently being handled. The Event object passed directly to event handlers should be used instead whenever possible.

Window.frameElement Read only

Returns the element in which the window is embedded, or null if the window is not embedded.

Window.frames Read only

Returns an array of the subframes in the current window.

Window.fullScreen

This property indicates whether the window is displayed in full screen or not.

Window.history Read only

Returns a reference to the history object.

Window.innerHeight Read only

Gets the height of the content area of the browser window including, if rendered, the horizontal scrollbar.

Window.innerWidth Read only

Gets the width of the content area of the browser window including, if rendered, the vertical scrollbar.

isSecureContext Read only

Indicates whether a context is capable of using features that require secure contexts.

Window.length Read only

Returns the number of frames in the window. See also window.frames.

Window.location

Gets/sets the location, or current URL, of the window object.

Window.locationbar Read only

Returns the locationbar object, whose visibility can be toggled in the window.

Window.localStorage Read only

Returns a reference to the local storage object used to store data that may only be accessed by the origin that created it.

Window.menubar Read only

Returns the menubar object, whose visibility can be toggled in the window.

Window.messageManager

Returns the message manager object for this window.

Window.mozInnerScreenX Read only

Returns the horizontal (X) coordinate of the top-left corner of the window's viewport, in screen coordinates. This value is reported in CSS pixels. See mozScreenPixelsPerCSSPixel in nsIDOMWindowUtils for a conversion factor to adapt to screen pixels if needed.

Window.mozInnerScreenY Read only

Returns the vertical (Y) coordinate of the top-left corner of the window's viewport, in screen coordinates. This value is reported in CSS pixels. See mozScreenPixelsPerCSSPixel for a conversion factor to adapt to screen pixels if needed.

Window.name

Gets/sets the name of the window.

Window.navigator Read only

Returns a reference to the navigator object.

Window.opener

Returns a reference to the window that opened this current window.

Window.outerHeight Read only

Gets the height of the outside of the browser window.

Window.outerWidth Read only

Gets the width of the outside of the browser window.

Window.pageXOffset Read only

An alias for window.scrollX.

Window.pageYOffset Read only

An alias for window.scrollY

Window.parent Read only

Returns a reference to the parent of the current window or subframe.

Window.performance Read only

Returns a Performance object, which includes the timing and navigation attributes, each of which is an object providing performance-related data. See also Using Navigation Timing for additional information and examples.

Window.personalbar Read only

Returns the personalbar object, whose visibility can be toggled in the window.

Window.screen Read only

Returns a reference to the screen object associated with the window.

Window.screenX and Window.screenLeft Read only

Both properties return the horizontal distance from the left border of the user's browser viewport to the left side of the screen.

Window.screenY and Window.screenTop Read only

Both properties return the vertical distance from the top border of the user's browser viewport to the top side of the screen.

Window.scrollbars Read only

Returns the scrollbars object, whose visibility can be toggled in the window.

Window.scrollMaxX Read only

The maximum offset that the window can be scrolled to horizontally, that is the document width minus the viewport width.

Window.scrollMaxY Read only

The maximum offset that the window can be scrolled to vertically (i.e., the document height minus the viewport height).

Window.scrollX Read only

Returns the number of pixels that the document has already been scrolled horizontally.

Window.scrollY Read only

Returns the number of pixels that the document has already been scrolled vertically.

Window.self Read only

Returns an object reference to the window object itself.

Window.sessionStorage

Returns a reference to the session storage object used to store data that may only be accessed by the origin that created it.

Window.sidebar Read only

Returns a reference to the window object of the sidebar.

Window.speechSynthesis Read only

Returns a SpeechSynthesis object, which is the entry point into using Web Speech API speech synthesis functionality.

Window.status

Gets/sets the text in the statusbar at the bottom of the browser.

Window.statusbar Read only

Returns the statusbar object, whose visibility can be toggled in the window.

Window.toolbar Read only

Returns the toolbar object, whose visibility can be toggled in the window.

Window.top Read only

Returns a reference to the topmost window in the window hierarchy. This property is read only.

Window.visualViewport Read only

Returns a VisualViewport object which represents the visual viewport for a given window.

Window.window Read only

Returns a reference to the current window.

window[0], window[1], etc.

Returns a reference to the window object in the frames. See Window.frames for more details.

Properties implemented from elsewhere

caches Read only

Returns the CacheStorage object associated with the current context. This object enables functionality such as storing assets for offline use, and generating custom responses to requests.

indexedDB Read only

Provides a mechanism for applications to asynchronously access capabilities of indexed databases; returns an IDBFactory object.

isSecureContext Read only

Returns a boolean indicating whether the current context is secure (true) or not (false).

origin Read only

Returns the global object's origin, serialized as a string. (This does not yet appear to be implemented in any browser.)

Deprecated properties

Window.content and Window._content Read only

Returns a reference to the content element in the current window. Since Firefox 57 (initially Nightly-only), both versions are only available from chrome (privileged) code, and not available to the web anymore.

Window.defaultStatus

Gets/sets the status bar text for the given window.

Window.dialogArguments Read only

Gets the arguments passed to the window (if it's a dialog box) at the time window.showModalDialog() was called. This is an nsIArray.

Window.mozPaintCount

Returns the number of times the current document has been rendered to the screen in this window. This can be used to compute rendering performance.

Window.orientation Read only

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

Window.returnValue

The return value to be returned to the function that called window.showModalDialog() to display the window as a modal dialog.

Methods

This interface inherits methods from the EventTarget interface and implements methods from WindowOrWorkerGlobalScope and EventTarget.

Window.alert()

Displays an alert dialog.

Window.blur()

Sets focus away from the window.

Window.cancelAnimationFrame()

Enables you to cancel a callback previously scheduled with Window.requestAnimationFrame.

Window.cancelIdleCallback()

Enables you to cancel a callback previously scheduled with Window.requestIdleCallback.

Window.clearImmediate()

Cancels the repeated execution set using setImmediate.

Window.close()

Closes the current window.

Window.confirm()

Displays a dialog with a message that the user needs to respond to.

Window.dump()

Writes a message to the console.

Window.find()

Searches for a given string in a window.

Window.focus()

Sets focus on the current window.

Window.getComputedStyle()

Gets computed style for the specified element. Computed style indicates the computed values of all CSS properties of the element.

Window.getDefaultComputedStyle()

Gets default computed style for the specified element, ignoring author stylesheets.

Window.getSelection()

Returns the selection object representing the selected item(s).

Window.matchMedia()

Returns a MediaQueryList object representing the specified media query string.

Window.moveBy()

Moves the current window by a specified amount.

Window.moveTo()

Moves the window to the specified coordinates.

Window.open()

Opens a new window.

Window.postMessage()

Provides a secure means for one window to send a string of data to another window, which need not be within the same domain as the first.

Window.print()

Opens the Print Dialog to print the current document.

Window.prompt()

Returns the text entered by the user in a prompt dialog.

Window.requestAnimationFrame()

Tells the browser that an animation is in progress, requesting that the browser schedule a repaint of the window for the next animation frame.

Window.requestIdleCallback()

Enables the scheduling of tasks during a browser's idle periods.

Window.resizeBy()

Resizes the current window by a certain amount.

Window.resizeTo()

Dynamically resizes window.

Window.scroll()

Scrolls the window to a particular place in the document.

Window.scrollBy()

Scrolls the document in the window by the given amount.

Window.scrollByLines()

Scrolls the document by the given number of lines.

Window.scrollByPages()

Scrolls the current document by the specified number of pages.

Window.scrollTo()

Scrolls to a particular set of coordinates in the document.

Window.setImmediate()

Executes a function after the browser has finished other heavy tasks

Window.setResizable()

Toggles a user's ability to resize a window.

Window.sizeToContent()

Sizes the window according to its content.

Window.showOpenFilePicker()

Shows a file picker that allows a user to select a file or multiple files.

Window.showSaveFilePicker()

Shows a file picker that allows a user to save a file.

Window.showDirectoryPicker()

Displays a directory picker which allows the user to select a directory.

Window.stop()

This method stops window loading.

Window.updateCommands()

Updates the state of commands of the current chrome window (UI).

Methods implemented from elsewhere

EventTarget.addEventListener()

Register an event handler to a specific event type on the window.

EventTarget.dispatchEvent()

Used to trigger an event.

atob()

Decodes a string of data which has been encoded using base-64 encoding.

btoa()

Creates a base-64 encoded ASCII string from a string of binary data.

clearInterval()

Cancels the repeated execution set using setInterval().

clearTimeout()

Cancels the delayed execution set using setTimeout().

createImageBitmap()

Accepts a variety of different image sources, and returns a Promise which resolves to an ImageBitmap. Optionally the source is cropped to the rectangle of pixels originating at (sx, sy) with width sw, and height sh.

fetch()

Starts the process of fetching a resource from the network.

EventTarget.removeEventListener

Removes an event listener from the window.

setInterval()

Schedules a function to execute every time a given number of milliseconds elapses.

setTimeout()

Schedules a function to execute in a given amount of time.

reportError()

Reports an error in a script, emulating an unhandled exception.

Deprecated methods

Window.back()

Moves back one in the window history. This method is deprecated; you should instead use window.history.back().

Window.captureEvents()

Registers the window to capture all events of the specified type.

Window.forward()

Moves the window one document forward in the history. This method is deprecated; you should instead use window.history.forward().

Window.home()

Returns the browser to the home page.

Window.openDialog()

Opens a new dialog window.

Window.releaseEvents()

Releases the window from trapping events of a specific type.

Window.showModalDialog()

Displays a modal dialog.

Event handlers

These are properties of the window object that can be set to establish event handlers for the various things that can happen in the window that might be of interest.

This interface inherits event handlers from the EventTarget interface and implements event handlers from WindowEventHandlers.

Window.onappinstalled

Called when the page is installed as a webapp. See appinstalled event.

Window.onbeforeinstallprompt

An event handler property dispatched before a user is prompted to save a web site to a home screen on mobile.

Window.ondevicemotion

Called if accelerometer detects a change (For mobile devices)

Window.ondeviceorientation

Called when the orientation is changed (For mobile devices)

Window.ondeviceorientationabsolute

An event handler property for any device orientation changes.

Window.ondeviceproximity

An event handler property for device proximity event (see DeviceProximityEvent)

Window.ongamepadconnected

Represents an event handler that will run when a gamepad is connected (when the gamepadconnected event fires).

Window.ongamepaddisconnected

Represents an event handler that will run when a gamepad is disconnected (when the gamepaddisconnected event fires).

WindowEventHandlers.onrejectionhandled

An event handler for handled Promise rejection events.

Window.onuserproximity

An event handler property for user proximity events (see UserProximityEvent).

Window.onvrdisplayconnect

Represents an event handler that will run when a compatible VR device has been connected to the computer (when the vrdisplayconnected event fires).

Window.onvrdisplaydisconnect

Represents an event handler that will run when a compatible VR device has been disconnected from the computer (when the vrdisplaydisconnected event fires).

Window.onvrdisplayactivate

Represents an event handler that will run when a display is able to be presented to (when the vrdisplayactivate event fires), for example if an HMD has been moved to bring it out of standby, or woken up by being put on.

Window.onvrdisplaydeactivate

Represents an event handler that will run when a display can no longer be presented to (when the vrdisplaydeactivate event fires), for example if an HMD has gone into standby or sleep mode due to a period of inactivity.

Window.onvrdisplayblur

Represents an event handler that will run when presentation to a display has been paused for some reason by the browser, OS, or VR hardware (when the vrdisplayblur event fires) — for example, while the user is interacting with a system menu or browser, to prevent tracking or loss of experience.

Window.onvrdisplayfocus

Represents an event handler that will run when presentation to a display has resumed after being blurred (when the vrdisplayfocus event fires).

Window.onvrdisplaypresentchange

represents an event handler that will run when the presenting state of a VR device changes — i.e. goes from presenting to not presenting, or vice versa (when the vrdisplaypresentchange event fires).

Event handlers implemented from elsewhere

GlobalEventHandlers.onabort

Called when the loading of a resource has been aborted, such as by a user canceling the load while it is still in progress

WindowEventHandlers.onafterprint

Called when the print dialog box is closed. See afterprint event.

WindowEventHandlers.onbeforeprint

Called when the print dialog box is opened. See beforeprint event.

WindowEventHandlers.onbeforeunload

An event handler property for before-unload events on the window.

GlobalEventHandlers.onblur

Called after the window loses focus, such as due to a popup.

GlobalEventHandlers.onchange

An event handler property for change events on the window.

GlobalEventHandlers.onclick

Called after the ANY mouse button is pressed & released

GlobalEventHandlers.ondblclick

Called when a double click is made with ANY mouse button.

GlobalEventHandlers.onclose

Called after the window is closed

GlobalEventHandlers.oncontextmenu

Called when the RIGHT mouse button is pressed

GlobalEventHandlers.onerror

Called when a resource fails to load OR when an error occurs at runtime. See error event.

GlobalEventHandlers.onfocus

Called after the window receives or regains focus. See focus events.

WindowEventHandlers.onhashchange

An event handler property for hashchange events on the window; called when the part of the URL after the hash mark ("#") changes.

GlobalEventHandlers.oninput

Called when the value of an <input> element changes

GlobalEventHandlers.onkeydown

Called when you begin pressing ANY key. See keydown event.

GlobalEventHandlers.onkeypress

Called when a key (except Shift, Fn, and CapsLock) is in pressed position. See keypress event.

GlobalEventHandlers.onkeyup

Called when you finish releasing ANY key. See keyup event.

WindowEventHandlers.onlanguagechange

An event handler property for languagechange events on the window.

GlobalEventHandlers.onload

Called after all resources and the DOM are fully loaded. WILL NOT get called when the page is loaded from cache, such as with back button.

WindowEventHandlers.onmessage

Is an event handler representing the code to be called when the message event is raised.

GlobalEventHandlers.onmousedown

Called when ANY mouse button is pressed.

GlobalEventHandlers.onmousemove

Called continously when the mouse is moved inside the window.

GlobalEventHandlers.onmouseout

Called when the pointer leaves the window.

GlobalEventHandlers.onmouseover

Called when the pointer enters the window

GlobalEventHandlers.onmouseup

Called when ANY mouse button is released

WindowEventHandlers.onoffline

Called when network connection is lost. See offline event.

WindowEventHandlers.ononline

Called when network connection is established. See online event.

WindowEventHandlers.onpagehide

Called when the user navigates away from the page, before the onunload event. See pagehide event.

WindowEventHandlers.onpageshow

Called after all resources and the DOM are fully loaded. See pageshow event.

WindowEventHandlers.onpopstate

Called when a back button is pressed.

GlobalEventHandlers.onreset

Called when a form is reset

GlobalEventHandlers.onresize

Called continuously as you are resizing the window.

GlobalEventHandlers.onscroll

Called when the scroll bar is moved via ANY means. If the resource fully fits in the window, then this event cannot be invoked

GlobalEventHandlers.onwheel

Called when the mouse wheel is rotated around any axis

GlobalEventHandlers.onselect

Called after text in an input field is selected

GlobalEventHandlers.onselectionchange

Is an event handler representing the code to be called when the selectionchange event is raised.

WindowEventHandlers.onstorage

Called when there is a change in session storage or local storage. See storage event

GlobalEventHandlers.onsubmit

Called when a form is submitted

WindowEventHandlers.onunhandledrejection

An event handler for unhandled Promise rejection events.

WindowEventHandlers.onunload

Called when the user navigates away from the page.

Events

Listen to these events using addEventListener() or by assigning an event listener to the oneventname property of this interface.

error

Fired when a resource failed to load, or can't be used. For example, if a script has an execution error or an image can't be found or is invalid. Also available via the onerror property.

languagechange

Fired at the global scope object when the user's preferred language changes. Also available via the onlanguagechange property.

orientationchange

Fired when the orientation of the device has changed. Also available via the onorientationchange property.

devicemotion

Fired at a regular interval, indicating the amount of physical force of acceleration the device is receiving and the rate of rotation, if available.

deviceorientation

Fired when fresh data is available from the magnetometer orientation sensor about the current orientation of the device as compared to the Earth coordinate frame.

resize

Fired when the window has been resized. Also available via the onresize property.

storage

Fired when a storage area (localStorage or sessionStorage) has been modified in the context of another document. Also available via the onstorage property.

Animation events

animationcancel

Fired when an animation unexpectedly aborts. Also available via the onanimationcancel property.

animationend

Fired when an animation has completed normally. Also available via the onanimationend property.

animationiteration

Fired when an animation iteration has completed. Also available via the onanimationiteration property.

animationstart

Fired when an animation starts. Also available via the onanimationstart property.

Clipboard events

copy

Fired when the user initiates a copy action through the browser's user interface. Also available via the oncopy property.

cut

Fired when the user initiates a cut action through the browser's user interface. Also available via the oncut property.

paste

Fired when the user initiates a paste action through the browser's user interface. Also available via the onpaste property.

Connection events

offline

Fired when the browser has lost access to the network and the value of navigator.onLine has switched to false. Also available via the onoffline property.

online

Fired when the browser has gained access to the network and the value of navigator.onLine has switched to true. Also available via the ononline property.

Focus events

blur

Fired when an element has lost focus. Also available via the onblur property.

focus

Fired when an element has gained focus. Also available via the onfocus property

Gamepad events

gamepadconnected

Fired when the browser detects that a gamepad has been connected or the first time a button/axis of the gamepad is used. Also available via the ongamepadconnected property.

gamepaddisconnected

Fired when the browser detects that a gamepad has been disconnected. Also available via the ongamepaddisconnected property

History events

hashchange

Fired when the fragment identifier of the URL has changed (the part of the URL beginning with and following the # symbol). Also available via the onhashchange property.

pagehide

Sent when the browser hides the current document while in the process of switching to displaying in its place a different document from the session's history. This happens, for example, when the user clicks the Back button or when they click the Forward button to move ahead in session history. Also available through the onpagehide event handler property.

pageshow

Sent when the browser makes the document visible due to navigation tasks, including not only when the page is first loaded, but also situations such as the user navigating back to the page after having navigated to another within the same tab. Also available using the onpageshow event handler property.

popstate

Fired when the active history entry changes. Also available using the onpopstate event handler property.

Load & unload events

beforeunload

Fired when the window, the document and its resources are about to be unloaded. Also available via the onbeforeunload property.

DOMContentLoaded

Fired when the document has been completely loaded and parsed, without waiting for stylesheets, images, and subframes to finish loading.

load

Fired when the whole page has loaded, including all dependent resources such as stylesheets images. Also available via the onload property.

unload

Fired when the document or a child resource is being unloaded. Also available via the onunload property.

Manifest events

appinstalled

Fired when the browser has successfully installed a page as an application. Also available via the onappinstalled property.

beforeinstallprompt

Fired when a user is about to be prompted to install a web application. Also available via the onbeforeinstallprompt property.

Messaging events

message

Fired when the window receives a message, for example from a call to Window.postMessage() from another browsing context. Also available via the onmessage property.

messageerror

Fired when a Window object receives a message that can't be deserialized. Also available via the onmessageerror property.

afterprint

Fired after the associated document has started printing or the print preview has been closed. Also available via the onafterprint property.

beforeprint

Fired when the associated document is about to be printed or previewed for printing. Also available via the onbeforeprint property.

Promise rejection events

rejectionhandled

Sent every time a JavaScript Promise is rejected, regardless of whether or not there is a handler in place to catch the rejection. Also available through the onrejectionhandled event handler property.

unhandledrejection

Sent when a JavaScript Promise is rejected but there is no handler in place to catch the rejection. Also available using the onunhandledrejection event handler property.

Transition events

transitioncancel

Fired when a CSS transition is canceled. Also available via the ontransitioncancel property.

transitionend

Fired when a CSS transition has completed. Also available via the ontransitionend property.

transitionrun

Fired when a CSS transition is first created. Also available via the ontransitionrun property.

transitionstart

Fired when a CSS transition has actually started. Also available via the ontransitionstart property.

WebVR events

vrdisplayactivate

Fired when a VR display becomes available to be presented to, for example if an HMD has been moved to bring it out of standby, or woken up by being put on. Also available via the onvrdisplayactivate property.

vrdisplayblur

Fired when presentation to a VR display has been paused for some reason by the browser, OS, or VR hardware. Also available via the onvrdisplayblur property.

vrdisplayconnect

Fired when a compatible VR display is connected to the computer. Also available via the onvrdisplayconnect property.

vrdisplaydeactivate

Fired when a VR display can no longer be presented to, for example if an HMD has gone into standby or sleep mode due to a period of inactivity. Also available via the onvrdisplaydeactivate property.

vrdisplaydisconnect

Fired when a compatible VR display is disconnected from the computer. Also available via the onvrdisplaydisconnect property.

vrdisplayfocus

Fired when presentation to a VR display has resumed after being blurred. Also available via the onvrdisplayfocus property.

vrdisplaypresentchange

Fired when the presenting state of a VR display changes — i.e. goes from presenting to not presenting, or vice versa. Also available via the onvrdisplaypresentchange property.

vrdisplaypointerrestricted

Fired when the VR display's pointer input is restricted to consumption via a pointerlocked element. Also available via the onvrdisplaypointerrestricted property.

vrdisplaypointerunrestricted

Fired when the VR display's pointer input is no longer restricted to consumption via a pointerlocked element. Also available via the onvrdisplaypointerunrestricted property.

Interfaces

See DOM Reference.

Specifications

Browser compatibility

Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari WebView Android Chrome Android Firefox for Android Opera Android Safari on IOS Samsung Internet
Window
1
12
1
4
3
1
1
18
4
10.1
1
1.0
DOMContentLoaded_event
1
12
1
9
9
3.1
≤37
18
4
10.1
2
1.0
afterprint_event
63
12
6
Yes
50
13
63
63
?
46
13
8.0
alert
1
Starting with Chrome 46, this method is blocked inside an <iframe> unless its sandbox attribute has the value allow-modals.
12
1
4
3
Starting with Opera 33, this method is blocked inside an <iframe> unless its sandbox attribute has the value allow-modals.
1
1
Starting with WebView 46, this method is blocked inside an <iframe> unless its sandbox attribute has the value allow-modals.
18
Starting with Chrome 46, this method is blocked inside an <iframe> unless its sandbox attribute has the value allow-modals.
4
10.1
Starting with Opera 33, this method is blocked inside an <iframe> unless its sandbox attribute has the value allow-modals.
1
1.0
Starting with Samsung Internet 5.0, this method is blocked inside an <iframe> unless its sandbox attribute has the value allow-modals.
animationcancel_event
No
No
54
No
No
13.1
12
No
No
54
No
13.4
12
No
animationend_event
43
1
18
≤79
Yes
No
?
9
43
≤37
43
18
Yes
?
9
4.0
1.0
animationiteration_event
43
1
18
≤79
51
No
?
9
43
≤37
43
18
51
?
9
4.0
1.0
animationstart_event
43
1
18
≤79
51
No
?
9
43
≤37
43
18
51
?
9
4.0
1.0
appinstalled_event
64
≤79
49-76
No
No
No
57
57
49
No
No
7.0
beforeprint_event
63
12
6
Yes
50
13
63
63
?
46
13
8.0
beforeunload_event
1
12
1
4
12
3
1
18
4
12
1
1.0
blur
1
12
1
4
≤12.1
1
1
18
4
≤12.1
1
1.0
blur_event
5
12
Yes
Apart from firing the event on window as other browsers do, Firefox also fires the event on the document object. See bug 1228802.
Yes-24
The interface for this event is Event, not FocusEvent.
Yes
12.1
5.1
≤37
18
Yes
12.1
5
1.0
cancelAnimationFrame
24
12
23
11-23
10
15
7
6-7
≤37
25
23
14-23
14
7
6-7
1.5
cancelIdleCallback
47
79
55
No
Yes
No
47
47
55
Yes
No
5.0
captureEvents
1
12
1
11
≤12.1
1
1
18
4
≤12.1
1
1.0
clearImmediate
No
12-79
No
10
No
No
No
No
No
No
No
No
close
1
12
Before Edge 79, scripts can close windows that weren't opened by the same script.
1
Before Firefox 46, scripts can close windows that weren't opened by the same script.
4
3
1
1
18
4
Before Firefox 46, scripts can close windows that weren't opened by the same script.
10.1
1
1.0
closed
1
12
1
4
≤12.1
1
1
18
4
≤12.1
1
1.0
confirm
1
Starting with Chrome 46, this method is blocked inside an <iframe> unless its sandbox attribute has the value allow-modals.
12
1
4
3
Starting with Opera 33, this method is blocked inside an <iframe> unless its sandbox attribute has the value allow-modals.
1
1
Starting with Chrome 46, this method is blocked inside an <iframe> unless its sandbox attribute has the value allow-modals.
18
Starting with Chrome 46, this method is blocked inside an <iframe> unless its sandbox attribute has the value allow-modals.
4
10.1
Starting with Opera 33, this method is blocked inside an <iframe> unless its sandbox attribute has the value allow-modals.
1
1.0
Starting with Samsung Internet 5.0, this method is blocked inside an <iframe> unless its sandbox attribute has the value allow-modals.
cookieStore
87
87
No
No
73
No
87
87
No
No
No
14.0
copy_event
1
≤18
Yes
No
15
3
1
18
Yes
14
3
1.0
customElements
54
79
63
No
41
10.1
54
54
63
41
10.3
6.0
cut_event
1
≤18
Yes
No
15
3
1
18
Yes
14
3
1.0
devicemotion_event
31
12
6
11
Yes
No
4.4
31
6
No
4.2
2.0
deviceorientation_event
7
12
6
3.6-6
11
12
No
3
18
6
4-6
12
4.2
1.0
devicePixelRatio
1
12
18
11
11.1
3
1
18
18
11.1
1
1.0
dialogArguments
No
No
No
No
No
No
No
No
No
No
No
No
document
1
12
1
4
≤12.1
1
1
18
4
≤12.1
1
1.0
error_event
Yes
12
Yes
9
?
?
Yes
Yes
Yes
?
?
Yes
event
1
12
66
4
7
1.1
1
18
66
10.1
1
1.0
external
1
12
2
From Firefox 78 AddSearchProvider() does nothing, as the specification requires.
4
15
No
≤37
18
4
From Firefox for Android 79 AddSearchProvider() does nothing, as the specification requires.
14
No
1.0
find
1
79
1
No
15
3
1
18
4
14
1
1.0
focus
1
Starting in Chrome 66, opening a popup in fullscreen mode and calling this function will end fullscreen mode.
12
1
4
≤12.1
1
1
18
4
≤12.1
1
1.0
focus_event
Yes
12
Yes
Apart from firing the event on window as other browsers do, Firefox also fires the event on the document object. See bug 1228802.
Yes-24
The interface for this event is Event, not FocusEvent.
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
frameElement
1
12
1
5.5
≤12.1
3
1
18
4
≤12.1
1
1.0
frames
1
12
1
4
≤12.1
1
1
18
4
≤12.1
1
1.0
fullScreen
No
No
1
No
No
No
No
No
4
No
No
No
gamepadconnected_event
35
21-35
≤18
29
No
22
15-22
10.1
37
37
32
Yes
No
3.0
gamepaddisconnected_event
35
21-35
≤18
29
No
22
15-22
10.1
37
37
32
Yes
No
3.0
getComputedStyle
1
12
1
Before version 62 this function returned null when called on a Window with no presentation (e.g. an iframe with display: none; set). Since 62 it returns a CSSStyleDeclaration object with length 0, containing empty strings (bug 1467722; also see bug 1471231 for further work).
9
7.2
3
1
18
4
Before version 62 this function returned null when called on a Window with no presentation (e.g. an iframe with display: none; set). Since 62 it returns a CSSStyleDeclaration object with length 0, containing empty strings (bug 1467722; also see bug 1471231 for further work).
10.1
1
1.0
getDefaultComputedStyle
No
No
19
No
No
No
No
No
19
No
No
No
getSelection
1
12
1
9
9
1
1
18
4
10.1
1
1.0
hashchange_event
8
4-8
A regular Event object is fired, rather than a HashChangeEvent object.
12
3.6
8
10.6
5
≤37
18
4
11
5
1.0
history
1
12
1
4
3
1
1
18
4
10.1
1
1.0
innerHeight
1
12
1
4-24
This property was buggy and could give a wrong value before page load in certain circumstances, see bug 641188.
9
9
3
1
18
4
4-24
This property was buggy and could give a wrong value before page load in certain circumstances, see bug 641188.
10.1
1
This property returns the height of the visual viewport instead of the layout viewport. See this bug for details.
1.0
innerWidth
1
12
1
4-24
This property was buggy and could give a wrong value before page load in certain circumstances, see bug 641188.
9
9
3
1
18
4
4-24
This property was buggy and could give a wrong value before page load in certain circumstances, see bug 641188.
10.1
1
This property returns the width of the visual viewport instead of the layout viewport. See this bug for details.
1.0
languagechange_event
37
≤79
32
No
24
10.1
37
37
4
24
10.3
4.0
length
1
12
1
4
≤12.1
1
1
18
4
≤12.1
1
1.0
load_event
1
12
1
4
4
1.3
1
18
4
10.1
1
1.0
localStorage
4
12
3.5
8
10.5
4
≤37
18
4
11
3.2
1.0
location
1
12
1
Before Firefox 57, single quotes contained in URLs were escaped when accessed via URL APIs. See bug 1386683.
4
3
1
1
18
4
Before Firefox 57, single quotes contained in URLs were escaped when accessed via URL APIs. See bug 1386683.
10.1
1
1.0
locationbar
1
12
1
No
15
3
1
18
4
14
1
1.0
matchMedia
9
12
6
10
12.1
5.1
≤37
18
6
12.1
5
1.0
menubar
1
12
1
No
15
3
1
18
4
14
1
1.0
message_event
60
12
9
8
47
4
60
60
9
47
4
8.0
messageerror_event
60
18
57
No
47
No
60
60
57
47
No
8.0
moveBy
1
12
1
4
≤12.1
1
1
18
4
≤12.1
1
1.0
moveTo
1
12
1
4
≤12.1
1
1
18
4
≤12.1
1
1.0
mozInnerScreenX
No
No
3.6
No
No
No
No
No
4
No
No
No
mozInnerScreenY
No
No
3.6
No
No
No
No
No
4
No
No
No
mozPaintCount
No
No
4-72
No
No
No
No
No
4-79
No
No
No
name
1
12
1
Before Firefox 86, if a new page from another domain is loaded into a tab, then window.name is not set to an empty string, which can allow some cross-site attacks. See bug 1685089 and bug 444222.
4
≤12.1
1
1
18
4
Before Firefox 86, if a new page from another domain is loaded into a tab, then window.name is not set to an empty string, which can allow some cross-site attacks. See bug 1685089 and bug 444222.
≤12.1
1
1.0
navigator
1
1
12
12
1
91
4
≤6
3
15
1
1
1
1
18
18
4
91
10.1
14
1
1
1.0
1.0
offline_event
Yes
12
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
onappinstalled
64
≤79
49-76
No
No
No
57
57
49
No
No
7.0
onbeforeinstallprompt
Yes
≤79
No
No
Yes
No
Yes
Yes
No
Yes
No
Yes
ondevicelight
No
13-79
62-89
22-61
Not supported for MacBook with Touch Bar and Windows 7 (see bug 754199).
No
No
No
No
No
62-79
15-61
No
No
No
ondevicemotion
31
12
9
11
18
No
4.4
31
9
18
4.2
2.0
ondeviceorientation
7
12
9
11
15
No
≤37
18
9
14
4.2
1.0
ondeviceorientationabsolute
50
79
No
No
37
No
50
50
No
37
No
5.0
ondeviceproximity
No
No
62-89
15-61
No
No
No
No
No
62-79
15-61
No
No
No
ongamepadconnected
35
21-35
≤18
29
No
22
15-22
10.1
No
35
25-35
32
22
14-22
No
3.0
1.5-3.0
ongamepaddisconnected
35
21-35
≤18
29
No
22
15-22
10.1
No
35
25-35
32
22
14-22
No
3.0
1.5-3.0
online_event
Yes
12
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
onorientationchange
No
No
No
No
No
No
Yes
Yes
Yes
Yes
Yes
Yes
onuserproximity
No
No
62-89
15-61
No
No
No
No
No
62-79
15-61
No
No
No
onvrdisplayactivate
No
15-79
55
Windows support was enabled in Firefox 55.
64
macOS support was enabled in Firefox 64.
No
No
No
No
No
55
No
No
No
onvrdisplayblur
No
15-79
No
No
No
No
No
No
No
No
No
No
onvrdisplayconnect
No
15-79
55
Windows support was enabled in Firefox 55.
64
macOS support was enabled in Firefox 64.
No
No
No
No
Yes
["Chrome for Android 56 supports only Google Daydream View.", "Chrome for Android 57 adds support for Google Cardboard."]
55
No
No
Yes
Supported on Samsung Internet for GearVR.
onvrdisplaydeactivate
No
15-79
55
Windows support was enabled in Firefox 55.
64
macOS support was enabled in Firefox 64.
No
No
No
No
No
55
No
No
No
onvrdisplaydisconnect
No
15-79
55
Windows support was enabled in Firefox 55.
64
macOS support was enabled in Firefox 64.
No
No
No
No
56
["Chrome for Android 56 supports only Google Daydream View.", "Chrome for Android 57 adds support for Google Cardboard."]
55
No
No
6.0
Supported on Samsung Internet for GearVR.
onvrdisplayfocus
No
15-79
No
No
No
No
No
No
No
No
No
No
onvrdisplaypointerrestricted
No
15-79
No
No
No
No
No
No
No
No
No
No
onvrdisplaypointerunrestricted
No
15-79
No
No
No
No
No
No
No
No
No
No
onvrdisplaypresentchange
65-80
15
55
Windows support was enabled in Firefox 55.
64
macOS support was enabled in Firefox 64.
No
No
No
No
56-80
["Chrome for Android 56 supports only Google Daydream View.", "Chrome for Android 57 adds support for Google Cardboard."]
55
No
No
6.0
Supported on Samsung Internet for GearVR.
open
1
12
1
4
3
1
1
18
4
10.1
1
1.0
openDialog
No
No
1-32
No
?
No
No
No
4-32
?
No
No
opener
1
12
1
9
3
1
1
18
4
10.1
1
1.0
orientation
No
No
No
No
No
No
Yes
Yes
Yes
Yes
Yes
Yes
orientationchange_event
No
No
No
No
No
No
Yes
Yes
44
Yes
Yes
Yes
originAgentCluster
88
90
No
No
76
No
90
88
No
64
No
15.0
outerHeight
1
12
1
9
9
3
Yes
Yes
4
10.1
3
Yes
outerWidth
1
12
1
9
9
3
Yes
Yes
4
10.1
3
Yes
pagehide_event
3
12
Yes
Yes
Yes
Yes
≤37
18
Yes
Yes
Yes
1.0
pageshow_event
3
12
Yes
Yes
Yes
Yes
≤37
18
Yes
Yes
Yes
1.0
pageXOffset
1
12
1
9
3
1
1
18
4
10.1
1
1.0
pageYOffset
1
12
1
9
3
1
1
18
4
10.1
1
1.0
parent
1
12
1
9
3
1.3
1
18
4
10.1
1
1.0
paste_event
1
12
Yes
11
15
3
1
18
Yes
14
3
1.0
personalbar
1
12
1
No
≤12.1
3
1
18
4
≤12.1
1
1.0
popstate_event
5
Before version 34, Chrome would fire a popstate event on page load.
12
4
Firefox emits a popstate event on page load.
10
11.5
5
Before version 10, Safari would fire a popstate event on page load.
≤37
Before version 37, WebView would fire a popstate event on page load.
18
Before version 34, Chrome would fire a popstate event on page load.
4
Firefox emits a popstate event on page load.
11.5
4.2
Before version 10, Safari would fire a popstate event on page load.
1.0
Before version 2.0, Samsung Internet would fire a popstate event on page load.
postMessage
1
12
8
Supports sending File and FileList objects between windows. This is only allowed if the recipient's principal is contained within the sender's principal for security reasons.
6
The message parameter is serialized using the structured clone algorithm. This means you can pass a broad variety of data objects safely to the destination window without having to serialize them yourself.
3-6
The message parameter must be a string.
10
IE10 had an important limitation: see this article for details.
8-10
Support only for <frame> and <iframe>.
9.5
4
≤37
18
8
Supports sending File and FileList objects between windows. This is only allowed if the recipient's principal is contained within the sender's principal for security reasons.
6
The message parameter is serialized using the structured clone algorithm. This means you can pass a broad variety of data objects safely to the destination window without having to serialize them yourself.
4-6
The message parameter must be a string.
10.1
3.2
1.0
print
1
Starting with Chrome 46, this method is blocked inside an <iframe> unless its sandbox attribute has the value allow-modals.
12
1
5
6
Starting with Opera 33, this method is blocked inside an <iframe> unless its sandbox attribute has the value allow-modals.
1.1
1
Starting with WebView 46, this method is blocked inside an <iframe> unless its sandbox attribute has the value allow-modals.
18
Starting with Chrome 46, this method is blocked inside an <iframe> unless its sandbox attribute has the value allow-modals.
No
10.1
Starting with Opera 33, this method is blocked inside an <iframe> unless its sandbox attribute has the value allow-modals.
1
1.0
Starting with Samsung Internet 5.0, this method is blocked inside an <iframe> unless its sandbox attribute has the value allow-modals.
prompt
1
Starting with Chrome 46, this method is blocked inside an <iframe> unless its sandbox attribute has the value allow-modals.
12
1
4
This function has no effect in the Modern UI/Metro version of Internet Explorer for Windows 8. It does not display a prompt to the user, and always returns undefined. It is not clear whether this is a bug or intended behavior. Desktop versions of IE do implement this function.
3
Starting with Opera 33, this method is blocked inside an <iframe> unless its sandbox attribute has the value allow-modals.
1
1
Starting with WebView 46, this method is blocked inside an <iframe> unless its sandbox attribute has the value allow-modals.
18
Starting with Chrome 46, this method is blocked inside an <iframe> unless its sandbox attribute has the value allow-modals.
4
10.1
Starting with Opera 33, this method is blocked inside an <iframe> unless its sandbox attribute has the value allow-modals.
1
1.0
Starting with Samsung Internet 5.0, this method is blocked inside an <iframe> unless its sandbox attribute has the value allow-modals.
rejectionhandled_event
49
≤79
69
68
No
36
11
49
49
68
36
11.3
5.0
releaseEvents
1
12
1
11
≤12.1
1
1
18
4
≤12.1
1
1.0
requestAnimationFrame
24
10
12
23
Callback parameter is a DOMHighResTimestamp. This means ten microsecond precision and zero time as performance.now().
11-42
Callback parameter is a DOMTimestamp. This means millisecond precision and zero time as Date.now().
4-11
Could be called with no input parameters.
10
15
15
7
6
≤37
≤37
25
18
23
14-42
14
14
7
6
1.5
1.0
requestFileSystem
13
≤18
No
No
No
No
37
Yes
No
No
No
Yes
requestIdleCallback
47
79
55
No
34
No
47
47
55
34
No
5.0
resize_event
1
Chrome does not emit a resize event on page load.
12
Before Edge 79, Edge emitted a resize event on page load. This is no longer the case.
1
Before Firefox 68, Firefox emitted a resize event on page load. This is no longer the case.
4
7
Opera does not emit a resize event on page load.
1.1
1
Webview does not emit a resize event on page load.
18
Chrome does not emit a resize event on page load.
4
Before Firefox 68, Firefox emitted a resize event on page load. This is no longer the case.
10.1
Opera does not emit a resize event on page load.
1
1.0
Samsung Internet does not emit a resize event on page load.
resizeBy
1
12
1
Since Firefox 7, it's no longer possible for a web site to change the default size of a window in a browser if the window wasn't created by window.open or contains more than one tab. See here for more details.
4
≤12.1
1
1
18
4
≤12.1
1
1.0
resizeTo
1
12
1
Since Firefox 7, it's no longer possible for a web site to change the default size of a window in a browser if the window wasn't created by window.open or contains more than one tab. See here for more details.
4
≤12.1
1
1
18
4
≤12.1
1
1.0
resolveLocalFileSystemURL
13
≤79
No
No
No
No
Yes
Yes
No
No
No
Yes
screen
1
12
1
4
≤12.1
1
1
18
4
≤12.1
1
1.0
screenLeft
1
12
64
5
≤12.1
1
1
18
64
≤12.1
1
1.0
screenTop
1
12
64
5
≤12.1
1
1
18
64
≤12.1
1
1.0
screenX
1
12
1
Before Firefox 28, Gecko was using device pixels instead of CSS pixels; in other words, it was assuming a value of screenPixelsPerCSSPixel of 1 for any device.
9
≤12.1
1
1
18
4
Before Firefox 28, Gecko was using device pixels instead of CSS pixels; in other words, it was assuming a value of screenPixelsPerCSSPixel of 1 for any device.
≤12.1
1
1.0
screenY
1
12
1
Before Firefox 28, Gecko was using device pixels instead of CSS pixels; in other words, it was assuming a value of screenPixelsPerCSSPixel of 1 for any device.
9
≤12.1
1
1
18
4
Before Firefox 28, Gecko was using device pixels instead of CSS pixels; in other words, it was assuming a value of screenPixelsPerCSSPixel of 1 for any device.
≤12.1
1
1.0
scroll
1
12
1
4
3
1
1
18
4
10.1
1
1.0
scrollbars
1
12
1
No
≤12.1
3
1
18
4
≤12.1
1
1.0
scrollBy
1
12
1
11
3
1
1
18
4
10.1
1
1.0
scrollByLines
No
No
1
No
?
No
No
No
4
?
No
No
scrollByPages
No
No
1
No
?
No
No
No
4
?
No
No
scrollMaxX
No
No
1
No
?
No
No
No
4
?
No
No
scrollMaxY
No
No
1
No
?
No
No
No
4
?
No
No
scrollTo
1
12
1
4
4
1
1
18
4
10.1
1
1.0
scrollX
1
1
12
12
1
1
9
9.6
4
1
1
1
1
18
18
4
4
10.1
10.1
1
1
1.0
1.0
scrollY
1
1
12
12
1
1
9
9.6
4
1
1
1
1
18
18
4
4
10.1
10.1
1
1
1.0
1.0
self
1
12
1
4
≤12.1
3
1
18
4
≤12.1
1
1.0
sessionStorage
5
12
2
8
10.5
4
≤37
18
4
11
3.2
1.0
setCursor
No
No
No
No
?
No
No
No
No
?
No
No
setImmediate
No
12-79
No
10
No
No
No
No
No
No
No
No
setResizable
No
No
1
No
?
No
No
No
4
?
No
No
showDirectoryPicker
86
86
No
No
72
No
No
No
No
No
No
No
showModalDialog
6-43
No
3-56
4
No
5.1
See WebKit bug 151885 for possible future removal from Safari.
No
No
No
No
No
No
showOpenFilePicker
86
86
No
No
72
No
No
No
No
No
No
No
showSaveFilePicker
86
86
No
No
72
No
No
No
No
No
No
No
sidebar
No
No
1
From Firefox 78 AddSearchProvider() does nothing, as the specification requires.
No
?
No
No
No
4
?
No
No
sizeToContent
No
No
1
No
?
No
No
No
4
This method has no effect as a page is always in a tab.
?
No
No
speechSynthesis
33
14
49
No
Yes
7
No
Yes
No
No
7
Yes
status
1
12
1
4
≤12.1
1
1
18
4
≤12.1
1
1.0
statusbar
1
12
1
No
15
3
1
18
4
14
1
1.0
stop
1
14
1
No
≤12.1
3
1
18
4
≤12.1
1
1.0
storage_event
1
15
45
9
15
4
≤37
18
45
14
4
1.0
styleMedia
6
12
No
9
15
5
≤37
18
No
14
4
1.0
toolbar
1
12
1
No
15
3
1
18
4
14
1
1.0
top
1
12
1
Starting in Firefox 6, this property is read only, as defined by the standard.
4
≤12.1
3
1
18
4
≤12.1
1
1.0
transitioncancel_event
No
No
53
No
?
13.1
12
No
No
53
?
13.4
12
No
transitionend_event
No
No
51
No
?
Yes
No
No
51
?
Yes
No
transitionrun_event
No
No
53
No
?
13.1
12
No
No
53
?
13.4
12
No
transitionstart_event
No
No
53
No
?
13.1
12
No
No
53
?
13.4
12
No
unhandledrejection_event
49
79
69
68
No
36
11
49
49
68
36
11.3
5.0
unload_event
1
12
1
4
4
3
1
18
4
10.1
1
1.0
updateCommands
No
No
1
No
?
No
No
No
4
?
No
No
visualViewport
61
79
91
63
No
48
13
61
61
68
63
45
13
8.0
vrdisplayactivate_event
No
No
55
Windows support was enabled in Firefox 55.
64
macOS support was enabled in Firefox 64.
No
No
No
No
No
55
No
No
No
vrdisplayblur_event
No
15-79
No
No
No
No
No
No
No
No
No
No
vrdisplayconnect_event
No
15-79
55
Windows support was enabled in Firefox 55.
64
macOS support was enabled in Firefox 64.
No
No
No
No
Yes
["Chrome for Android 56 supports only Google Daydream View.", "Chrome for Android 57 adds support for Google Cardboard."]
55
No
No
Yes
Supported on Samsung Internet for GearVR.
vrdisplaydeactivate_event
No
No
55
Windows support was enabled in Firefox 55.
64
macOS support was enabled in Firefox 64.
No
No
No
No
No
55
No
No
No
vrdisplaydisconnect_event
No
15-79
55
Windows support was enabled in Firefox 55.
64
macOS support was enabled in Firefox 64.
No
No
No
No
56
["Chrome for Android 56 supports only Google Daydream View.", "Chrome for Android 57 adds support for Google Cardboard."]
55
No
No
6.0
Supported on Samsung Internet for GearVR.
vrdisplayfocus_event
No
15-79
No
No
No
No
No
No
No
No
No
No
vrdisplaypointerrestricted_event
No
15-79
No
No
No
No
No
No
No
No
No
No
vrdisplaypointerunrestricted_event
No
15-79
No
No
No
No
No
No
No
No
No
No
vrdisplaypresentchange_event
65
15
55
Windows support was enabled in Firefox 55.
64
macOS support was enabled in Firefox 64.
No
No
No
No
56
["Chrome for Android 56 supports only Google Daydream View.", "Chrome for Android 57 adds support for Google Cardboard."]
55
No
No
6.0
Supported on Samsung Internet for GearVR.
webkitConvertPointFromNodeToPage
1-39
No
No
No
15-26
≤4
≤37-39
18-39
No
14-26
≤3
1.0-4.0
webkitConvertPointFromPageToNode
1-39
No
No
No
15-26
≤4
≤37-39
18-39
No
14-26
≤3
1.0-4.0
window
1
12
1
4
≤12.1
3
1
18
4
≤12.1
1
1.0

© 2005–2021 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/Window