Web/API/Window

From Get docs


The Window interface represents a window containing a [[../../../Glossary/DOM|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.
Image
Used for creating an HTMLImageElement.
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.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.controllers Read only '
Returns the XUL controller objects for the current chrome window.
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.
Window.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

WindowOrWorkerGlobalScope.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.
WindowOrWorkerGlobalScope.indexedDB Read only
Provides a mechanism for applications to asynchronously access capabilities of indexed databases; returns an IDBFactory object.
WindowOrWorkerGlobalScope.isSecureContext Read only
Returns a boolean indicating whether the current context is secure (true) or not (false).
WindowOrWorkerGlobalScope.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.directories '
Synonym of window.personalbar
Window.globalStorage ' '
Multiple storage objects that were used for storing data across multiple pages.
Window.mozAnimationStartTime ' '
The time in milliseconds since epoch at which the current animation cycle began. Use Animation.startTime instead.
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.pkcs11 '
Formerly provided access to install and remove PKCS11 modules.
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.maximize()
FIXME: NeedsContents
Window.minimize() (top-level XUL windows only)
Minimizes the window.
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.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.
WindowOrWorkerGlobalScope.atob()
Decodes a string of data which has been encoded using base-64 encoding.
WindowOrWorkerGlobalScope.btoa()
Creates a base-64 encoded ASCII string from a string of binary data.
WindowOrWorkerGlobalScope.clearInterval()
Cancels the repeated execution set using WindowOrWorkerGlobalScope.setInterval().
WindowOrWorkerGlobalScope.clearTimeout()
Cancels the delayed execution set using WindowOrWorkerGlobalScope.setTimeout().
WindowOrWorkerGlobalScope.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.
WindowOrWorkerGlobalScope.fetch()
Starts the process of fetching a resource from the network.
EventTarget.removeEventListener
Removes an event listener from the window.
WindowOrWorkerGlobalScope.setInterval()
Schedules a function to execute every time a given number of milliseconds elapses.
WindowOrWorkerGlobalScope.setTimeout()
Schedules a function to execute in a given amount of time.

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.getAttention() ' '
Flashes the application icon.
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.ondevicelight
An event handler property for any ambient light levels changes
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
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).
Window.onmozbeforepaint
An event handler property for the MozBeforePaint event, which is sent before repainting the window if the event has been requested by a call to the Window.mozRequestAnimationFrame() method.
Window.onpaint
An event handler property for paint events on the window.
Window.onrejectionhandled
An event handler for handled Promise rejection events.
Window.onuserproximity
An event handler property for user proximity events.
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 EventHandler 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 EventHandler 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

clipboardchange
Fired when the system clipboard content changes.
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.

Print events

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

Specification
HTML Living StandardThe definition of 'Window' in that specification.

Browser compatibility

Update compatibility data on GitHub

Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari Android webview Chrome for Android Firefox for Android Opera for Android Safari on iOS Samsung Internet
Window Chrome

Full support 1

Edge

Full support 12

Firefox

Full support 1

IE

Full support 4

Opera

Full support 3

Safari

Full support 1

WebView Android

Full support 1

Chrome Android

Full support 18

Firefox Android

Full support 4

Opera Android

Full support 10.1

Safari iOS

Full support 1

Samsung Internet Android

Full support 1.0

DOMContentLoaded event Chrome

Full support 1

Edge

Full support 12

Firefox

Full support 1

IE

Full support 9

Opera

Full support 9

Safari

Full support 3.1

WebView Android

Full support 1

Chrome Android

Full support 18

Firefox Android

Full support 4

Opera Android

Full support 10.1

Safari iOS

Full support 2

Samsung Internet Android

Full support 1.0

OverconstrainedError

Experimental'

Chrome

Full support 63

Edge

Full support ≤79

Firefox

?

IE

?

Opera

Full support Yes

Safari

?

WebView Android

Full support 63

Chrome Android

Full support 63

Firefox Android

?

Opera Android

Full support Yes

Safari iOS

?

Samsung Internet Android

Full support 8.0

afterprint event Chrome

Full support 63

Edge

Full support 12

Firefox

Full support 6

IE

Full support Yes

Opera

Full support 50

Safari

Full support 13

WebView Android

Full support 63

Chrome Android

Full support 63

Firefox Android

?

Opera Android

Full support 46

Safari iOS

Full support 13

Samsung Internet Android

Full support 8.0

alert

Chrome Full support 1

Notes'

Full support 1

Notes'

Notes' Starting with Chrome 46, this method is blocked inside an <iframe> unless its sandbox attribute has the value allow-modals.

Edge

Full support 12

Firefox

Full support 1

IE

Full support 4

Opera Full support 3

Notes'

Full support 3

Notes'

Notes' Starting with Opera 33, this method is blocked inside an <iframe> unless its sandbox attribute has the value allow-modals.

Safari

Full support 1

WebView Android Full support 1

Notes'

Full support 1

Notes'

Notes' Starting with WebView 46, this method is blocked inside an <iframe> unless its sandbox attribute has the value allow-modals.

Chrome Android Full support 18

Notes'

Full support 18

Notes'

Notes' Starting with Chrome 46, this method is blocked inside an <iframe> unless its sandbox attribute has the value allow-modals.

Firefox Android

Full support 4

Opera Android Full support 10.1

Notes'

Full support 10.1

Notes'

Notes' Starting with Opera 33, this method is blocked inside an <iframe> unless its sandbox attribute has the value allow-modals.

Safari iOS

Full support 1

Samsung Internet Android Full support 1.0

Notes'

Full support 1.0

Notes'

Notes' Starting with Samsung Internet 5.0, this method is blocked inside an <iframe> unless its sandbox attribute has the value allow-modals.

animationcancel event Chrome

No support No

Edge

No support No

Firefox

Full support 54

IE

?

Opera

No support No

Safari Full support 13.1


Full support 13.1


Full support 12

Disabled'

Disabled' From version 12: this feature is behind the Web Animations preference and the CSS Animations via Web Animations preference.

WebView Android

No support No

Chrome Android

No support No

Firefox Android

Full support 54

Opera Android

No support No

Safari iOS Full support 13.4


Full support 13.4


Full support 12

Disabled'

Disabled' From version 12: this feature is behind the Web Animations preference and the CSS Animations via Web Animations preference.

Samsung Internet Android

No support No

animationend event

Chrome Full support 43


Full support 43


Full support 1

Prefixed'

Prefixed' Implemented with the vendor prefix: webkit

Edge Full support ≤79


Full support ≤79


Full support ≤79

Prefixed'

Prefixed' Implemented with the vendor prefix: webkit

Firefox

Full support Yes

IE

?

Opera

?

Safari

Full support 9

WebView Android Full support 43


Full support 43


Full support Yes

Prefixed'

Prefixed' Implemented with the vendor prefix: webkit

Chrome Android Full support 43


Full support 43


Full support 18

Prefixed'

Prefixed' Implemented with the vendor prefix: webkit

Firefox Android

Full support Yes

Opera Android

?

Safari iOS

Full support 9

Samsung Internet Android Full support 4.0


Full support 4.0


Full support 1.0

Prefixed'

Prefixed' Implemented with the vendor prefix: webkit

animationiteration event

Chrome Full support 43


Full support 43


Full support 1

Prefixed'

Prefixed' Implemented with the vendor prefix: webkit

Edge Full support ≤79


Full support ≤79


Full support ≤79

Prefixed'

Prefixed' Implemented with the vendor prefix: webkit

Firefox

Full support 51

IE

?

Opera

?

Safari

Full support 9

WebView Android Full support 43


Full support 43


Full support Yes

Prefixed'

Prefixed' Implemented with the vendor prefix: webkit

Chrome Android Full support 43


Full support 43


Full support 18

Prefixed'

Prefixed' Implemented with the vendor prefix: webkit

Firefox Android

Full support 51

Opera Android

?

Safari iOS

Full support 9

Samsung Internet Android Full support 4.0


Full support 4.0


Full support 1.0

Prefixed'

Prefixed' Implemented with the vendor prefix: webkit

animationstart event

Chrome Full support 43


Full support 43


Full support 1

Prefixed'

Prefixed' Implemented with the vendor prefix: webkit

Edge Full support ≤79


Full support ≤79


Full support ≤79

Prefixed'

Prefixed' Implemented with the vendor prefix: webkit

Firefox

Full support 51

IE

?

Opera

?

Safari

Full support 9

WebView Android Full support 43


Full support 43


Full support Yes

Prefixed'

Prefixed' Implemented with the vendor prefix: webkit

Chrome Android Full support 43


Full support 43


Full support 18

Prefixed'

Prefixed' Implemented with the vendor prefix: webkit

Firefox Android

Full support 51

Opera Android

?

Safari iOS

Full support 9

Samsung Internet Android Full support 4.0


Full support 4.0


Full support 1.0

Prefixed'

Prefixed' Implemented with the vendor prefix: webkit

beforeprint event Chrome

Full support 63

Edge

Full support 12

Firefox

Full support 6

IE

Full support Yes

Opera

Full support 50

Safari

Full support 13

WebView Android

Full support 63

Chrome Android

Full support 63

Firefox Android

?

Opera Android

Full support 46

Safari iOS

Full support 13

Samsung Internet Android

Full support 8.0

beforeunload event Chrome

Full support 1

Edge

Full support 12

Firefox

Full support 1

IE

Full support 4

Opera

Full support 12

Safari

Full support 3

WebView Android

Full support 1

Chrome Android

Full support 18

Firefox Android

Full support 4

Opera Android

Full support 12

Safari iOS

Full support 1

Samsung Internet Android

Full support 1.0

blur Chrome

Full support 1

Edge

Full support 12

Firefox

Full support 1

IE

Full support 4

Opera

Full support ≤12.1

Safari

Full support 1

WebView Android

Full support 1

Chrome Android

Full support 18

Firefox Android

Full support 4

Opera Android

Full support ≤12.1

Safari iOS

Full support 1

Samsung Internet Android

Full support 1.0

blur event Chrome

Full support 5

Edge

Full support 12

Firefox Full support Yes


Full support Yes


No support ? — 24

Notes'

Notes' The interface for this event is Event, not FocusEvent.

IE

Full support Yes

Opera

Full support 12.1

Safari

Full support 5.1

WebView Android

Full support Yes

Chrome Android

Full support 18

Firefox Android

Full support Yes

Opera Android

Full support 12.1

Safari iOS

Full support 5.1

Samsung Internet Android

Full support 1.0

cancelAnimationFrame Chrome

Full support 24

Edge

Full support 12

Firefox Full support 23


Full support 23


No support 11 — 23

Prefixed'

Prefixed' Implemented with the vendor prefix: moz

IE

Full support 10

Opera

Full support 15

Safari Full support 6.1


Full support 6.1


No support 6 — 6.1

Prefixed'

Prefixed' Implemented with the vendor prefix: webkit

WebView Android

Full support ≤37

Chrome Android

Full support 25

Firefox Android Full support 23


Full support 23


No support 14 — 23

Prefixed'

Prefixed' Implemented with the vendor prefix: moz

Opera Android

Full support 14

Safari iOS

Full support 7

Samsung Internet Android

Full support 1.5

cancelIdleCallback

Experimental'

Chrome

Full support 47

Edge

Full support 79

Firefox Full support 55


Full support 55


Full support 53

Disabled'

Disabled' From version 53: this feature is behind the dom.requestIdleCallback.enabled preference (needs to be set to true). To change preferences in Firefox, visit about:config.

IE

No support No

Opera

Full support Yes

Safari

No support No

WebView Android

Full support 47

Chrome Android

Full support 47

Firefox Android Full support 55


Full support 55


Full support 53

Disabled'

Disabled' From version 53: this feature is behind the dom.requestIdleCallback.enabled preference (needs to be set to true). To change preferences in Firefox, visit about:config.

Opera Android

Full support Yes

Safari iOS

No support No

Samsung Internet Android

Full support 5.0

clearImmediate

Non-standard'

Chrome

No support No

Edge

No support 12 — 79

Firefox

No support No

IE

Full support 10

Opera

No support No

Safari

No support No

WebView Android

No support No

Chrome Android

No support No

Firefox Android

No support No

Opera Android

No support No

Safari iOS

No support No

Samsung Internet Android

No support No

clipboardchange event

Experimental'

Chrome

No support No

Edge

No support No

Firefox

No support No

IE

No support No

Opera

No support No

Safari

No support No

WebView Android

No support No

Chrome Android

No support No

Firefox Android

No support No

Opera Android

No support No

Safari iOS

No support No

Samsung Internet Android

No support No

close Chrome

Full support 1

Edge

Full support 12

Firefox Full support 1

Notes'

Full support 1

Notes'

Notes' Starting in Firefox 46.0.1, Window.close() can no longer close windows that weren't opened by the same script. This is a security precaution.

IE

Full support 4

Opera

Full support 3

Safari

Full support 1

WebView Android

Full support 1

Chrome Android

Full support 18

Firefox Android Full support 4

Notes'

Full support 4

Notes'

Notes' Starting in Firefox 46.0.1, Window.close() can no longer close windows that weren't opened by the same script. This is a security precaution.

Opera Android

Full support 10.1

Safari iOS

Full support 1

Samsung Internet Android

Full support 1.0

confirm

Chrome Full support 1

Notes'

Full support 1

Notes'

Notes' Starting with Chrome 46, this method is blocked inside an <iframe> unless its sandbox attribute has the value allow-modals.

Edge

Full support 12

Firefox

Full support 1

IE

Full support 4

Opera Full support 3

Notes'

Full support 3

Notes'

Notes' Starting with Opera 33, this method is blocked inside an <iframe> unless its sandbox attribute has the value allow-modals.

Safari

Full support 1

WebView Android Full support 1

Notes'

Full support 1

Notes'

Notes' Starting with Chrome 46, this method is blocked inside an <iframe> unless its sandbox attribute has the value allow-modals.

Chrome Android Full support 18

Notes'

Full support 18

Notes'

Notes' Starting with Chrome 46, this method is blocked inside an <iframe> unless its sandbox attribute has the value allow-modals.

Firefox Android

Full support 4

Opera Android Full support 10.1

Notes'

Full support 10.1

Notes'

Notes' Starting with Opera 33, this method is blocked inside an <iframe> unless its sandbox attribute has the value allow-modals.

Safari iOS

Full support 1

Samsung Internet Android Full support 1.0

Notes'

Full support 1.0

Notes'

Notes' Starting with Samsung Internet 5.0, this method is blocked inside an <iframe> unless its sandbox attribute has the value allow-modals.

convertPointFromNodeToPage

Non-standard'

Chrome

Full support Yes

Edge

Full support ≤18

Firefox

Full support 6

IE

?

Opera

?

Safari Full support Yes

Alternate Name'

Full support Yes

Alternate Name'

Alternate Name' Uses the non-standard name: webkitConvertPointFromNodeToPage

WebView Android

Full support Yes

Chrome Android

Full support Yes

Firefox Android

Full support 6

Opera Android

No support No

Safari iOS

Full support Yes

Samsung Internet Android

Full support Yes

convertPointFromPageToNode

Non-standard'

Chrome Full support 50

Notes'

Full support 50

Notes'

Notes' For absolute values, use ondeviceorientationabsolute. No support 7 — 50

Notes'

Notes' Provided absolute values, not relative.

Edge

Full support ≤18

Firefox Full support 6


Full support 6


No support 3.6 — 6

Alternate Name'

Alternate Name' Uses the non-standard name: onmozorientation

IE

?

Opera

?

Safari Full support Yes

Alternate Name'

Full support Yes

Alternate Name'

Alternate Name' Uses the non-standard name: webkitConvertPointFromPageToNode

WebView Android Full support 50

Notes'

Full support 50

Notes'

Notes' For absolute values, use ondeviceorientationabsolute. No support ? — 50

Notes'

Notes' Provided absolute values, not relative.

Chrome Android Full support 50

Notes'

Full support 50

Notes'

Notes' For absolute values, use ondeviceorientationabsolute. No support ? — 50

Notes'

Notes' Provided absolute values, not relative.

Firefox Android Full support 6


Full support 6


No support 4 — 6

Alternate Name'

Alternate Name' Uses the non-standard name: onmozorientation

Opera Android

No support No

Safari iOS

Full support Yes

Samsung Internet Android Full support 5.0

Notes'

Full support 5.0

Notes'

Notes' For absolute values, use ondeviceorientationabsolute. No support ? — 5.0

Notes'

Notes' Provided absolute values, not relative.

copy event Chrome

Full support 58

Edge

Full support ≤18

Firefox

Full support Yes

IE

No support No

Opera

Full support 45

Safari

Full support Yes

WebView Android

Full support 58

Chrome Android

Full support 58

Firefox Android

Full support Yes

Opera Android

Full support 43

Safari iOS

?

Samsung Internet Android

Full support 7.0

crypto Chrome

Full support 37

Edge

Full support 12

Firefox

Full support 34

IE Full support 11

Prefixed'

Full support 11

Prefixed'

Prefixed' Implemented with the vendor prefix: ms

Opera

Full support 24

Safari

Full support 6.1

WebView Android

Full support 37

Chrome Android

Full support 37

Firefox Android

Full support 34

Opera Android

Full support 24

Safari iOS

Full support 6.1

Samsung Internet Android

Full support 3.0

customElements Chrome

Full support 54

Edge

Full support 79

Firefox Full support 63


Full support 63


No support 59 — 63

Disabled'

Disabled' From version 59 until version 63 (exclusive): this feature is behind the dom.webcomponents.customelements.enabled preference (needs to be set to true). To change preferences in Firefox, visit about:config. No support ? — 59

Disabled'

Disabled' Until version 59 (exclusive): this feature is behind the dom.webcomponents.enabled preference (needs to be set to true) and the dom.webcomponents.customelements.enabled preference (needs to be set to true). To change preferences in Firefox, visit about:config.

IE

No support No

Opera

Full support 41

Safari

Full support 10.1

WebView Android

Full support 54

Chrome Android

Full support 54

Firefox Android Full support 63


Full support 63


No support 59 — 63

Disabled'

Disabled' From version 59 until version 63 (exclusive): this feature is behind the dom.webcomponents.customelements.enabled preference (needs to be set to true). To change preferences in Firefox, visit about:config. No support ? — 59

Disabled'

Disabled' Until version 59 (exclusive): this feature is behind the dom.webcomponents.enabled preference (needs to be set to true) and the dom.webcomponents.customelements.enabled preference (needs to be set to true). To change preferences in Firefox, visit about:config.

Opera Android

Full support 41

Safari iOS

Full support 10.3

Samsung Internet Android

Full support 6.0

cut event Chrome

Full support 58

Edge

Full support ≤18

Firefox

Full support Yes

IE

No support No

Opera

Full support 45

Safari

Full support Yes

WebView Android

Full support 58

Chrome Android

Full support 58

Firefox Android

Full support Yes

Opera Android

Full support 43

Safari iOS

?

Samsung Internet Android

Full support 7.0

devicemotion event

Experimental'

Chrome

Full support Yes

Edge

Full support ≤18

Firefox

Full support 6

IE

?

Opera

Full support Yes

Safari

?

WebView Android

Full support Yes

Chrome Android

Full support Yes

Firefox Android

Full support 6

Opera Android

No support No

Safari iOS

Full support 4.2

Samsung Internet Android

Full support Yes

deviceorientation event Chrome

Full support 7

Edge

Full support ≤18

Firefox Full support 6


Full support 6


No support 3.6 — 6

Alternate Name'

Alternate Name' Uses the non-standard name: mozOrientation

IE

?

Opera

Full support 12

Safari

Full support Yes

WebView Android

Full support 3

Chrome Android

Full support 18

Firefox Android Full support 6


Full support 6


No support 4 — 6

Alternate Name'

Alternate Name' Uses the non-standard name: mozOrientation

Opera Android

Full support 12

Safari iOS

Full support 4.2

Samsung Internet Android

Full support 1.0

devicePixelRatio Chrome

Full support 1

Edge

Full support 12

Firefox

Full support 18

IE

Full support 11

Opera

Full support 11.1

Safari

Full support 3

WebView Android

Full support 1

Chrome Android

Full support 18

Firefox Android

Full support 18

Opera Android

Full support 11.1

Safari iOS

Full support 1

Samsung Internet Android

Full support 1.0

dialogArguments

Deprecated'Non-standard'

Chrome

?

Edge

?

Firefox

?

IE

?

Opera

?

Safari

?

WebView Android

?

Chrome Android

?

Firefox Android

?

Opera Android

?

Safari iOS

?

Samsung Internet Android

?

document Chrome

Full support 1

Edge

Full support 12

Firefox

Full support 1

IE

Full support 4

Opera

Full support ≤12.1

Safari

Full support 1

WebView Android

Full support 1

Chrome Android

Full support 18

Firefox Android

Full support 4

Opera Android

Full support ≤12.1

Safari iOS

Full support 1

Samsung Internet Android

Full support 1.0

error event Chrome

Full support Yes

Edge

Full support ≤79

Firefox

Full support Yes

IE

?

Opera

?

Safari

?

WebView Android

Full support Yes

Chrome Android

Full support Yes

Firefox Android

Full support Yes

Opera Android

?

Safari iOS

?

Samsung Internet Android

Full support Yes

event Chrome

Full support 1

Edge

Full support 12

Firefox Full support 66


Full support 66


Full support 63

Notes' Disabled'

Notes' This was briefly enabled by default in 65, then removed again while related compatibility issues are sorted out (see bug 1520756). Disabled' From version 63: this feature is behind the dom.window.event.enabled preference (needs to be set to true). To change preferences in Firefox, visit about:config.

IE

Full support 4

Opera

Full support 7

Safari

Full support 1.1

WebView Android

Full support 1

Chrome Android

Full support 18

Firefox Android Full support 66


Full support 66


Full support 63

Notes' Disabled'

Notes' This was briefly enabled by default in 65, then removed again while related compatibility issues are sorted out (see bug 1520756). Disabled' From version 63: this feature is behind the dom.window.event.enabled preference (needs to be set to true). To change preferences in Firefox, visit about:config.

Opera Android

Full support 10.1

Safari iOS

Full support 1

Samsung Internet Android

Full support 1.0

external

Deprecated'

Chrome

Full support Yes

Edge

Full support 12

Firefox Full support 2

Notes'

Full support 2

Notes'

Notes' From Firefox 78 AddSearchProvider() does nothing, as the specification requires.

IE

Full support 4

Opera

Full support 15

Safari

No support No

WebView Android

Full support Yes

Chrome Android

Full support Yes

Firefox Android Full support 4

Notes'

Full support 4

Notes'

Notes' From Firefox for Android 79 AddSearchProvider() does nothing, as the specification requires.

Opera Android

Full support 14

Safari iOS

No support No

Samsung Internet Android

Full support Yes

find

Experimental'Non-standard'

Chrome

Full support 1

Edge

Full support 79

Firefox

Full support 1

IE

No support No

Opera

Full support 15

Safari

Full support 3

WebView Android

Full support 1

Chrome Android

Full support 18

Firefox Android

Full support 4

Opera Android

Full support 14

Safari iOS

Full support 1

Samsung Internet Android

Full support 1.0

focus

Chrome Full support 1

Notes'

Full support 1

Notes'

Notes' Starting in Chrome 66, opening a popup in fullscreen mode and calling this function will end fullscreen mode.

Edge

Full support 12

Firefox

Full support 1

IE

Full support 4

Opera

Full support ≤12.1

Safari

Full support 1

WebView Android

Full support 1

Chrome Android

Full support 18

Firefox Android

Full support 4

Opera Android

Full support ≤12.1

Safari iOS

Full support 1

Samsung Internet Android

Full support 1.0

focus event Chrome

Full support Yes

Edge

Full support 12

Firefox Full support Yes


Full support Yes


No support ? — 24

Notes'

Notes' The interface for this event is Event, not FocusEvent.

IE

Full support Yes

Opera

Full support Yes

Safari

Full support Yes

WebView Android

Full support Yes

Chrome Android

Full support Yes

Firefox Android

Full support Yes

Opera Android

Full support Yes

Safari iOS

Full support Yes

Samsung Internet Android

Full support Yes

frameElement Chrome

Full support 1

Edge

Full support 12

Firefox

Full support 1

IE

Full support 5.5

Opera

Full support ≤12.1

Safari

Full support 3

WebView Android

Full support 1

Chrome Android

Full support 18

Firefox Android

Full support 4

Opera Android

Full support ≤12.1

Safari iOS

Full support 1

Samsung Internet Android

Full support 1.0

frames Chrome

Full support 1

Edge

Full support 12

Firefox

Full support 1

IE

Full support 4

Opera

Full support ≤12.1

Safari

Full support 1

WebView Android

Full support 1

Chrome Android

Full support 18

Firefox Android

Full support 4

Opera Android

Full support ≤12.1

Safari iOS

Full support 1

Samsung Internet Android

Full support 1.0

fullScreen

Non-standard'

Chrome

No support No

Edge

No support No

Firefox

Full support 3

IE

No support No

Opera

No support No

Safari

No support No

WebView Android

No support No

Chrome Android

No support No

Firefox Android

Full support 4

Opera Android

No support No

Safari iOS

No support No

Samsung Internet Android

No support No

gamepadconnected event

Chrome Full support 35


Full support 35


No support 21 — 35

Prefixed'

Prefixed' Implemented with the vendor prefix: webkit

Edge

Full support ≤18

Firefox

Full support 29

IE

No support No

Opera Full support 22


Full support 22


No support 15 — 22

Prefixed'

Prefixed' Implemented with the vendor prefix: webkit

Safari

Full support 10.1

WebView Android

Full support 37

Chrome Android

Full support 37

Firefox Android

Full support 32

Opera Android

Full support Yes

Safari iOS

No support No

Samsung Internet Android

Full support 3.0

gamepaddisconnected event

Chrome Full support 35


Full support 35


No support 21 — 35

Prefixed'

Prefixed' Implemented with the vendor prefix: webkit

Edge

Full support ≤18

Firefox

Full support 29

IE

No support No

Opera Full support 22


Full support 22


No support 15 — 22

Prefixed'

Prefixed' Implemented with the vendor prefix: webkit

Safari

Full support 10.1

WebView Android

Full support 37

Chrome Android

Full support 37

Firefox Android

Full support 32

Opera Android

Full support Yes

Safari iOS

No support No

Samsung Internet Android

Full support 3.0

getAttention

Non-standard'

Chrome

No support No

Edge

No support No

Firefox

No support No

IE

No support No

Opera

No support No

Safari

No support No

WebView Android

No support No

Chrome Android

No support No

Firefox Android

No support No

Opera Android

No support No

Safari iOS

No support No

Samsung Internet Android

No support No

getAttentionWithCycleCount

Non-standard'

Chrome

No support No

Edge

No support No

Firefox

No support No

IE

No support No

Opera

No support No

Safari

No support No

WebView Android

No support No

Chrome Android

No support No

Firefox Android

No support No

Opera Android

No support No

Safari iOS

No support No

Samsung Internet Android

No support No

getComputedStyle Chrome

Full support 1

Edge

Full support 12

Firefox Full support 1

Notes'

Full support 1

Notes'

Notes' 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).

IE

Full support 9

Opera

Full support 7.2

Safari

Full support 3

WebView Android

Full support 1

Chrome Android

Full support 18

Firefox Android Full support 4

Notes'

Full support 4

Notes'

Notes' 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).

Opera Android

Full support 10.1

Safari iOS

Full support 1

Samsung Internet Android

Full support 1.0

getDefaultComputedStyle

Non-standard'

Chrome

No support No

Edge

No support No

Firefox

Full support 19

IE

No support No

Opera

No support No

Safari

No support No

WebView Android

No support No

Chrome Android

No support No

Firefox Android

Full support 19

Opera Android

No support No

Safari iOS

No support No

Samsung Internet Android

No support No

getSelection Chrome

Full support 1

Edge

Full support 12

Firefox

Full support 1

IE

Full support 9

Opera

Full support 9

Safari

Full support 1

WebView Android

Full support 1

Chrome Android

Full support 18

Firefox Android

Full support 4

Opera Android

Full support 10.1

Safari iOS

Full support 1

Samsung Internet Android

Full support 1.0

globalStorage

Deprecated'Non-standard'

Chrome

No support No

Edge

No support No

Firefox

No support ? — 13

IE

?

Opera

?

Safari

?

WebView Android

No support No

Chrome Android

No support No

Firefox Android

No support No

Opera Android

?

Safari iOS

?

Samsung Internet Android

No support No

hashchange event Chrome

Full support 5

Edge

Full support 12

Firefox

Full support 3.6

IE

Full support 8

Opera

Full support 10.6

Safari

Full support 5

WebView Android

Full support Yes

Chrome Android

Full support 18

Firefox Android

Full support 4

Opera Android

Full support 11

Safari iOS

Full support 5

Samsung Internet Android

Full support 1.0

history Chrome

Full support 1

Edge

Full support 12

Firefox

Full support 1

IE

Full support 4

Opera

Full support 3

Safari

Full support 1

WebView Android

Full support 1

Chrome Android

Full support 18

Firefox Android

Full support 4

Opera Android

Full support 10.1

Safari iOS

Full support 1

Samsung Internet Android

Full support 1.0

home

Deprecated'Non-standard'

Chrome

No support No

Edge

No support No

Firefox

Full support 1

IE

No support No

Opera

Full support Yes

Safari

No support No

WebView Android

No support No

Chrome Android

No support No

Firefox Android

?

Opera Android

?

Safari iOS

No support No

Samsung Internet Android

No support No

innerHeight Chrome

Full support 1

Edge

Full support 12

Firefox Full support 1


Full support 1


No support 4 — 24

Notes'

Notes' This property was buggy and could give a wrong value before page load in certain circumstances, see bug 641188.

IE

Full support 9

Opera

Full support 9

Safari

Full support 3

WebView Android

Full support 1

Chrome Android

Full support 18

Firefox Android Full support 4


Full support 4


No support 4 — 24

Notes'

Notes' This property was buggy and could give a wrong value before page load in certain circumstances, see bug 641188.

Opera Android

Full support 10.1

Safari iOS Full support 1

Notes'

Full support 1

Notes'

Notes' This property returns the height of the visual viewport instead of the layout viewport. See this bug for details.

Samsung Internet Android

Full support 1.0

innerWidth Chrome

Full support 1

Edge

Full support 12

Firefox Full support 1


Full support 1


No support 4 — 24

Notes'

Notes' This property was buggy and could give a wrong value before page load in certain circumstances, see bug 641188.

IE

Full support 9

Opera

Full support 9

Safari

Full support 3

WebView Android

Full support 1

Chrome Android

Full support 18

Firefox Android Full support 4


Full support 4


No support 4 — 24

Notes'

Notes' This property was buggy and could give a wrong value before page load in certain circumstances, see bug 641188.

Opera Android

Full support 10.1

Safari iOS Full support 1

Notes'

Full support 1

Notes'

Notes' This property returns the width of the visual viewport instead of the layout viewport. See this bug for details.

Samsung Internet Android

Full support 1.0

isSecureContext Chrome

Full support 47

Edge

Full support 15

Firefox

Full support 49

IE

No support No

Opera

Full support 34

Safari

Full support 11.1

WebView Android

Full support 47

Chrome Android

Full support 47

Firefox Android

Full support 49

Opera Android

Full support 34

Safari iOS

Full support 11.3

Samsung Internet Android

Full support 5.0

languagechange event Chrome

Full support 37

Edge

Full support ≤79

Firefox

Full support 32

IE

No support No

Opera

Full support 24

Safari

?

WebView Android

Full support 37

Chrome Android

Full support 37

Firefox Android

Full support 4

Opera Android

Full support 24

Safari iOS

?

Samsung Internet Android

Full support 4.0

languagechange event

Experimental'

Chrome

Full support 77

Edge

Full support 80

Firefox

No support No

IE

No support No

Opera

Full support Yes

Safari

No support No

WebView Android

Full support 77

Chrome Android

Full support 77

Firefox Android

No support No

Opera Android

Full support Yes

Safari iOS

No support No

Samsung Internet Android

Full support 12.0

length Chrome

Full support 1

Edge

Full support 12

Firefox

Full support 1

IE

Full support 4

Opera

Full support ≤12.1

Safari

Full support 1

WebView Android

Full support 1

Chrome Android

Full support 18

Firefox Android

Full support 4

Opera Android

Full support ≤12.1

Safari iOS

Full support 1

Samsung Internet Android

Full support 1.0

load event Chrome

Full support 1

Edge

Full support 12

Firefox

Full support 1

IE

Full support 4

Opera

Full support 4

Safari

Full support 1.3

WebView Android

Full support 1

Chrome Android

Full support 18

Firefox Android

Full support 4

Opera Android

Full support 10.1

Safari iOS

Full support 1

Samsung Internet Android

Full support 1.0

localStorage Chrome

Full support 4

Edge

Full support 12

Firefox

Full support 3.5

IE

Full support 8

Opera

Full support 10.5

Safari

Full support 4

WebView Android

Full support ≤37

Chrome Android

Full support 18

Firefox Android

Full support 4

Opera Android

Full support 11

Safari iOS

Full support 3.2

Samsung Internet Android

Full support 1.0

location Chrome

Full support 1

Edge

Full support 12

Firefox Full support 1

Notes'

Full support 1

Notes'

Notes' Before Firefox 57, single quotes contained in URLs were escaped when accessed via URL APIs. See bug 1386683.

IE

Full support 4

Opera

Full support 3

Safari

Full support 1

WebView Android

Full support 1

Chrome Android

Full support 18

Firefox Android Full support 4

Notes'

Full support 4

Notes'

Notes' Before Firefox 57, single quotes contained in URLs were escaped when accessed via URL APIs. See bug 1386683.

Opera Android

Full support 10.1

Safari iOS

Full support 1

Samsung Internet Android

Full support 1.0

locationbar Chrome

Full support 1

Edge

Full support 12

Firefox

Full support 1

IE

No support No

Opera

Full support 15

Safari

Full support 3

WebView Android

Full support 1

Chrome Android

Full support 18

Firefox Android

Full support 4

Opera Android

Full support 14

Safari iOS

Full support 1

Samsung Internet Android

Full support 1.0

matchMedia Chrome

Full support 9

Edge

Full support 12

Firefox

Full support 6

IE

Full support 10

Opera

Full support 12.1

Safari

Full support 5.1

WebView Android

Full support ≤37

Chrome Android

Full support 18

Firefox Android

Full support 6

Opera Android

Full support 12.1

Safari iOS

Full support 5

Samsung Internet Android

Full support 1.0

maximize

Non-standard'

Chrome

No support No

Edge

No support No

Firefox

No support No

IE

?

Opera

?

Safari

?

WebView Android

No support No

Chrome Android

No support No

Firefox Android

No support No

Opera Android

?

Safari iOS

?

Samsung Internet Android

No support No

menubar Chrome

Full support 1

Edge

Full support 12

Firefox

Full support 1

IE

No support No

Opera

Full support 15

Safari

Full support 3

WebView Android

Full support 1

Chrome Android

Full support 18

Firefox Android

Full support 4

Opera Android

Full support 14

Safari iOS

Full support 1

Samsung Internet Android

Full support 1.0

message event Chrome

Full support 60

Edge

Full support ≤79

Firefox

?

IE

?

Opera

Full support 47

Safari

?

WebView Android

Full support 60

Chrome Android

Full support 60

Firefox Android

?

Opera Android

Full support 47

Safari iOS

?

Samsung Internet Android

Full support 8.0

messageerror event Chrome

Full support 60

Edge

Full support ≤79

Firefox

Full support 57

IE

?

Opera

Full support 47

Safari

?

WebView Android

Full support 60

Chrome Android

Full support 60

Firefox Android

Full support 57

Opera Android

Full support 47

Safari iOS

?

Samsung Internet Android

Full support 8.0

minimize

Non-standard'

Chrome

No support No

Edge

No support No

Firefox

No support No

IE

?

Opera

?

Safari

?

WebView Android

No support No

Chrome Android

No support No

Firefox Android

No support No

Opera Android

?

Safari iOS

?

Samsung Internet Android

No support No

moveBy Chrome

Full support 1

Edge

Full support 12

Firefox

Full support 1

IE

Full support 4

Opera

Full support ≤12.1

Safari

Full support 1

WebView Android

Full support 1

Chrome Android

Full support 18

Firefox Android

Full support 4

Opera Android

Full support ≤12.1

Safari iOS

Full support 1

Samsung Internet Android

Full support 1.0

moveTo Chrome

Full support 1

Edge

Full support 12

Firefox

Full support 1

IE

Full support 4

Opera

Full support ≤12.1

Safari

Full support 1

WebView Android

Full support 1

Chrome Android

Full support 18

Firefox Android

Full support 4

Opera Android

Full support ≤12.1

Safari iOS

Full support 1

Samsung Internet Android

Full support 1.0

mozAnimationStartTime

Non-standard'

Chrome

No support No

Edge

No support No

Firefox

No support No

IE

No support No

Opera

No support No

Safari

No support No

WebView Android

No support No

Chrome Android

No support No

Firefox Android

No support No

Opera Android

No support No

Safari iOS

No support No

Samsung Internet Android

No support No

mozInnerScreenX

Non-standard'

Chrome

No support No

Edge

No support No

Firefox

Full support Yes

IE

No support No

Opera

No support No

Safari

No support No

WebView Android

No support No

Chrome Android

No support No

Firefox Android

Full support Yes

Opera Android

No support No

Safari iOS

No support No

Samsung Internet Android

No support No

mozInnerScreenY

Non-standard'

Chrome

No support No

Edge

No support No

Firefox

Full support Yes

IE

No support No

Opera

No support No

Safari

No support No

WebView Android

No support No

Chrome Android

No support No

Firefox Android

Full support Yes

Opera Android

No support No

Safari iOS

No support No

Samsung Internet Android

No support No

mozPaintCount

Deprecated'Non-standard'

Chrome

No support No

Edge

No support No

Firefox

No support 4 — 72

IE

No support No

Opera

No support No

Safari

No support No

WebView Android

No support No

Chrome Android

No support No

Firefox Android

Full support 4

Opera Android

No support No

Safari iOS

No support No

Samsung Internet Android

No support No

name Chrome

Full support 1

Edge

Full support 12

Firefox Full support 1

Notes'

Full support 1

Notes'

Notes' From Firefox 82, if a new page from another domain is loaded into a tab, then window.name is set to the empty string (the original string is restored if the tab reverts back to the original page). This change prevents some cross-site attacks. See bug 444222.

IE

Full support 4

Opera

Full support ≤12.1

Safari

Full support 1

WebView Android

Full support 1

Chrome Android

Full support 18

Firefox Android Full support 4

Notes'

Full support 4

Notes'

Notes' From Firefox 82, if a new page from another domain is loaded into a tab, then window.name is set to the empty string (the original string is restored if the tab reverts back to the original page). This change prevents some cross-site attacks. See bug 444222.

Opera Android

Full support ≤12.1

Safari iOS

Full support 1

Samsung Internet Android

Full support 1.0

navigator Chrome

Full support 1

Edge

Full support 12

Firefox

Full support 1

IE

Full support 4

Opera

Full support 3

Safari

Full support 1

WebView Android

Full support 1

Chrome Android

Full support 18

Firefox Android

Full support 4

Opera Android

Full support 10.1

Safari iOS

Full support 1

Samsung Internet Android

Full support 1.0

offline event Chrome

Full support Yes

Edge

Full support 12

Firefox

Full support Yes

IE

Full support Yes

Opera

Full support Yes

Safari

Full support Yes

WebView Android

Full support Yes

Chrome Android

Full support Yes

Firefox Android

Full support Yes

Opera Android

Full support Yes

Safari iOS

Full support Yes

Samsung Internet Android

Full support Yes

onappinstalled

Deprecated'Non-standard'

Chrome

Full support 64

Edge

Full support ≤79

Firefox No support 49 — 76

Disabled'

No support 49 — 76

Disabled'

Disabled' From version 49 until version 76 (exclusive): this feature is behind the dom.manifest.onappinstall preference (needs to be set to true). To change preferences in Firefox, visit about:config.

IE

?

Opera

No support No

Safari

?

WebView Android

No support No

Chrome Android

Full support 57

Firefox Android Full support 49

Disabled'

Full support 49

Disabled'

Disabled' From version 49: this feature is behind the dom.manifest.onappinstall preference (needs to be set to true). To change preferences in Firefox, visit about:config.

Opera Android

No support No

Safari iOS

?

Samsung Internet Android

Full support 7.0

onbeforeinstallprompt

Non-standard'

Chrome

Full support Yes

Edge

Full support ≤79

Firefox

No support No

IE

?

Opera

Full support Yes

Safari

?

WebView Android

Full support Yes

Chrome Android

Full support Yes

Firefox Android

No support No

Opera Android

Full support Yes

Safari iOS

?

Samsung Internet Android

Full support Yes

ondevicelight

Deprecated'Non-standard'

Chrome

No support No

Edge

No support 13 — 79

Firefox

Full support 22

IE

No support No

Opera

No support No

Safari

No support No

WebView Android

No support No

Chrome Android

No support No

Firefox Android

Full support 15

Opera Android

No support No

Safari iOS

No support No

Samsung Internet Android

No support No

ondevicemotion Chrome

Full support 31

Edge

Full support 12

Firefox

Full support 9

IE

Full support 11

Opera

Full support 18

Safari

No support No

WebView Android

Full support 4.4

Chrome Android

Full support 31

Firefox Android

Full support 9

Opera Android

Full support 18

Safari iOS

No support No

Samsung Internet Android

Full support 2.0

ondeviceorientation Chrome

Full support 7

Edge

Full support 12

Firefox

Full support 9

IE

Full support 11

Opera

Full support 15

Safari

No support No

WebView Android

Full support ≤37

Chrome Android

Full support 18

Firefox Android

Full support 9

Opera Android

Full support 14

Safari iOS

No support No

Samsung Internet Android

Full support 1.0

ondeviceorientationabsolute

Non-standard'

Chrome

Full support 50

Edge

Full support 79

Firefox

No support No

IE

No support No

Opera

Full support 37

Safari

No support No

WebView Android

Full support 50

Chrome Android

Full support 50

Firefox Android

No support No

Opera Android

Full support 37

Safari iOS

No support No

Samsung Internet Android

Full support 5.0

ondeviceproximity

Deprecated'Non-standard'

Chrome

No support No

Edge

No support No

Firefox

Full support 15

IE

No support No

Opera

No support No

Safari

No support No

WebView Android

No support No

Chrome Android

No support No

Firefox Android

Full support 15

Opera Android

No support No

Safari iOS

No support No

Samsung Internet Android

No support No

ongamepadconnected

Chrome Full support 35


Full support 35


No support 21 — 35

Prefixed'

Prefixed' Implemented with the vendor prefix: webkit

Edge

Full support ≤18

Firefox

Full support 29

IE

No support No

Opera Full support 22


Full support 22


No support 15 — 22

Prefixed'

Prefixed' Implemented with the vendor prefix: webkit

Safari

Full support 10.1

WebView Android

Full support 37

Chrome Android Full support 35


Full support 35


No support 25 — 35

Prefixed'

Prefixed' Implemented with the vendor prefix: webkit

Firefox Android

Full support 32

Opera Android Full support 22


Full support 22


No support 14 — 22

Prefixed'

Prefixed' Implemented with the vendor prefix: webkit

Safari iOS

No support No

Samsung Internet Android Full support 3.0


Full support 3.0


No support 1.5 — 3.0

Prefixed'

Prefixed' Implemented with the vendor prefix: webkit

ongamepaddisconnected

Chrome Full support 35


Full support 35


No support 21 — 35

Prefixed'

Prefixed' Implemented with the vendor prefix: webkit

Edge

Full support ≤18

Firefox

Full support 29

IE

No support No

Opera Full support 22


Full support 22


No support 15 — 22

Prefixed'

Prefixed' Implemented with the vendor prefix: webkit

Safari

Full support 10.1

WebView Android

?

Chrome Android Full support 35


Full support 35


No support 25 — 35

Prefixed'

Prefixed' Implemented with the vendor prefix: webkit

Firefox Android

Full support 32

Opera Android Full support 22


Full support 22


No support 14 — 22

Prefixed'

Prefixed' Implemented with the vendor prefix: webkit

Safari iOS

No support No

Samsung Internet Android Full support 3.0


Full support 3.0


No support 1.5 — 3.0

Prefixed'

Prefixed' Implemented with the vendor prefix: webkit

online event Chrome

Full support Yes

Edge

Full support 12

Firefox

Full support Yes

IE

Full support Yes

Opera

Full support Yes

Safari

Full support Yes

WebView Android

Full support Yes

Chrome Android

Full support Yes

Firefox Android

Full support Yes

Opera Android

Full support Yes

Safari iOS

Full support Yes

Samsung Internet Android

Full support Yes

onpaint

Non-standard'

Chrome

No support No

Edge

No support No

Firefox

No support No

IE

?

Opera

?

Safari

?

WebView Android

Full support Yes

Chrome Android

No support No

Firefox Android

No support No

Opera Android

?

Safari iOS

?

Samsung Internet Android

No support No

onuserproximity

Deprecated'Non-standard'

Chrome

No support No

Edge

No support No

Firefox

Full support 15

IE

No support No

Opera

No support No

Safari

No support No

WebView Android

No support No

Chrome Android

No support No

Firefox Android

Full support 15

Opera Android

No support No

Safari iOS

No support No

Samsung Internet Android

No support No

onvrdisplayactivate

Experimental'Deprecated'

Chrome

No support No

Edge

No support 15 — 79

Firefox Full support 55

Notes'

Full support 55

Notes'

Notes' Windows support was enabled in Firefox 55. Full support 64

Notes'

Notes' macOS support was enabled in Firefox 64.

IE

No support No

Opera

No support No

Safari

No support No

WebView Android

No support No

Chrome Android

No support No

Firefox Android

Full support 55

Opera Android

No support No

Safari iOS

No support No

Samsung Internet Android

No support No

onvrdisplayblur

Experimental'Deprecated'

Chrome

No support No

Edge

No support 15 — 79

Firefox

No support No

IE

No support No

Opera

No support No

Safari

No support No

WebView Android

No support No

Chrome Android

No support No

Firefox Android

No support No

Opera Android

No support No

Safari iOS

No support No

Samsung Internet Android

No support No

onvrdisplayconnect

Experimental'Deprecated'

Chrome No support No

Disabled'

No support No

Disabled'

Disabled' This feature is behind the WebVR preference (needs to be set to Enabled). To change preferences in Chrome, visit chrome://flags.

Edge

No support 15 — 79

Firefox Full support 55

Notes'

Full support 55

Notes'

Notes' Windows support was enabled in Firefox 55. Full support 64

Notes'

Notes' macOS support was enabled in Firefox 64.

IE

No support No

Opera

No support No

Safari

No support No

WebView Android

No support No

Chrome Android Full support Yes

Notes'

Full support Yes

Notes'

Notes' Chrome for Android 56 supports only Google Daydream View. Notes' Chrome for Android 57 adds support for Google Cardboard.

Firefox Android

Full support 55

Opera Android

No support No

Safari iOS

No support No

Samsung Internet Android Full support Yes

Notes'

Full support Yes

Notes'

Notes' Supported on Samsung Internet for GearVR.

onvrdisplaydeactivate

Experimental'Deprecated'

Chrome

No support No

Edge

No support 15 — 79

Firefox Full support 55

Notes'

Full support 55

Notes'

Notes' Windows support was enabled in Firefox 55. Full support 64

Notes'

Notes' macOS support was enabled in Firefox 64.

IE

No support No

Opera

No support No

Safari

No support No

WebView Android

No support No

Chrome Android

No support No

Firefox Android

Full support 55

Opera Android

No support No

Safari iOS

No support No

Samsung Internet Android

No support No

onvrdisplaydisconnect

Experimental'Deprecated'

Chrome No support No

Disabled'

No support No

Disabled'

Disabled' This feature is behind the WebVR preference (needs to be set to Enabled). To change preferences in Chrome, visit chrome://flags.

Edge

No support 15 — 79

Firefox Full support 55

Notes'

Full support 55

Notes'

Notes' Windows support was enabled in Firefox 55. Full support 64

Notes'

Notes' macOS support was enabled in Firefox 64.

IE

No support No

Opera

No support No

Safari

No support No

WebView Android

No support No

Chrome Android Full support 56

Notes'

Full support 56

Notes'

Notes' Chrome for Android 56 supports only Google Daydream View. Notes' Chrome for Android 57 adds support for Google Cardboard.

Firefox Android

Full support 55

Opera Android

No support No

Safari iOS

No support No

Samsung Internet Android Full support 6.0

Notes'

Full support 6.0

Notes'

Notes' Supported on Samsung Internet for GearVR.

onvrdisplayfocus

Experimental'Deprecated'

Chrome

No support No

Edge

No support 15 — 79

Firefox

No support No

IE

No support No

Opera

No support No

Safari

No support No

WebView Android

No support No

Chrome Android

No support No

Firefox Android

No support No

Opera Android

No support No

Safari iOS

No support No

Samsung Internet Android

No support No

onvrdisplaypointerrestricted

Experimental'Deprecated'

Chrome

No support No

Edge

No support 15 — 79

Firefox

No support No

IE

No support No

Opera

No support No

Safari

No support No

WebView Android

No support No

Chrome Android

No support No

Firefox Android

No support No

Opera Android

No support No

Safari iOS

No support No

Samsung Internet Android

No support No

onvrdisplaypointerunrestricted

Experimental'Deprecated'

Chrome

No support No

Edge

No support 15 — 79

Firefox

No support No

IE

No support No

Opera

No support No

Safari

No support No

WebView Android

No support No

Chrome Android

No support No

Firefox Android

No support No

Opera Android

No support No

Safari iOS

No support No

Samsung Internet Android

No support No

onvrdisplaypresentchange

Experimental'Deprecated'

Chrome No support 65 — 80

Disabled'

No support 65 — 80

Disabled'

Disabled' From version 65 until version 80 (exclusive): this feature is behind the WebVR preference (needs to be set to Enabled). To change preferences in Chrome, visit chrome://flags.

Edge

Full support 15

Firefox Full support 55

Notes'

Full support 55

Notes'

Notes' Windows support was enabled in Firefox 55. Full support 64

Notes'

Notes' macOS support was enabled in Firefox 64.

IE

No support No

Opera

No support No

Safari

No support No

WebView Android

No support No

Chrome Android No support 56 — 80

Notes'

No support 56 — 80

Notes'

Notes' Chrome for Android 56 supports only Google Daydream View. Notes' Chrome for Android 57 adds support for Google Cardboard.

Firefox Android

Full support 55

Opera Android

No support No

Safari iOS

No support No

Samsung Internet Android Full support 6.0

Notes'

Full support 6.0

Notes'

Notes' Supported on Samsung Internet for GearVR.

open Chrome

Full support 1

Edge

Full support 12

Firefox

Full support 1

IE

Full support 4

Opera

Full support 3

Safari

Full support 1

WebView Android

Full support 1

Chrome Android

Full support 18

Firefox Android

Full support 4

Opera Android

Full support 10.1

Safari iOS

Full support 1

Samsung Internet Android

Full support 1.0

openDialog

Non-standard'

Chrome

No support No

Edge

No support No

Firefox

No support No

IE

?

Opera

?

Safari

?

WebView Android

No support No

Chrome Android

No support No

Firefox Android

No support No

Opera Android

?

Safari iOS

?

Samsung Internet Android

No support No

opener Chrome

Full support 1

Edge

Full support 12

Firefox

Full support 1

IE

Full support 9

Opera

Full support 3

Safari

Full support 1

WebView Android

Full support 1

Chrome Android

Full support 18

Firefox Android

Full support 4

Opera Android

Full support 10.1

Safari iOS

Full support 1

Samsung Internet Android

Full support 1.0

orientation

Deprecated'

Chrome

No support No

Edge

No support No

Firefox

No support No

IE

No support No

Opera

No support No

Safari

No support No

WebView Android

Full support Yes

Chrome Android

Full support Yes

Firefox Android

Full support Yes

Opera Android

Full support Yes

Safari iOS

Full support Yes

Samsung Internet Android

Full support Yes

orientationchange event

Deprecated'

Chrome

No support No

Edge

No support No

Firefox

No support No

IE

No support No

Opera

No support No

Safari

No support No

WebView Android

Full support Yes

Chrome Android

Full support Yes

Firefox Android

Full support 44

Opera Android

Full support Yes

Safari iOS

Full support Yes

Samsung Internet Android

Full support Yes

outerHeight Chrome

Full support 1

Edge

Full support 12

Firefox

Full support 1

IE

Full support 9

Opera

Full support 9

Safari

Full support 3

WebView Android

Full support Yes

Chrome Android

Full support Yes

Firefox Android

Full support 4

Opera Android

Full support 10.1

Safari iOS

Full support 3

Samsung Internet Android

Full support Yes

outerWidth Chrome

Full support 1

Edge

Full support 12

Firefox

Full support 1

IE

Full support 9

Opera

Full support 9

Safari

Full support 3

WebView Android

Full support Yes

Chrome Android

Full support Yes

Firefox Android

Full support 4

Opera Android

Full support 10.1

Safari iOS

Full support 3

Samsung Internet Android

Full support Yes

pagehide event Chrome

Full support 3

Edge

Full support 12

Firefox

Full support Yes

IE

Full support Yes

Opera

Full support Yes

Safari

Full support Yes

WebView Android

Full support ≤37

Chrome Android

Full support 18

Firefox Android

Full support Yes

Opera Android

Full support Yes

Safari iOS

Full support Yes

Samsung Internet Android

Full support 1.0

pageshow event Chrome

Full support 3

Edge

Full support 12

Firefox

Full support Yes

IE

Full support Yes

Opera

Full support Yes

Safari

Full support Yes

WebView Android

Full support ≤37

Chrome Android

Full support 18

Firefox Android

Full support Yes

Opera Android

Full support Yes

Safari iOS

Full support Yes

Samsung Internet Android

Full support 1.0

pageXOffset Chrome

Full support 1

Edge

Full support 12

Firefox

Full support 1

IE

Full support 9

Opera

Full support 3

Safari

Full support 1

WebView Android

Full support 1

Chrome Android

Full support 18

Firefox Android

Full support 4

Opera Android

Full support 10.1

Safari iOS

Full support 1

Samsung Internet Android

Full support 1.0

pageYOffset Chrome

Full support 1

Edge

Full support 12

Firefox

Full support 1

IE

Full support 9

Opera

Full support 3

Safari

Full support 1

WebView Android

Full support 1

Chrome Android

Full support 18

Firefox Android

Full support 4

Opera Android

Full support 10.1

Safari iOS

Full support 1

Samsung Internet Android

Full support 1.0

parent Chrome

Full support 1

Edge

Full support 12

Firefox

Full support 1

IE

Full support 9

Opera

Full support 3

Safari

Full support 1.3

WebView Android

Full support 1

Chrome Android

Full support 18

Firefox Android

Full support 4

Opera Android

Full support 10.1

Safari iOS

Full support 1

Samsung Internet Android

Full support 1.0

paste event Chrome

Full support 58

Edge

Full support 12

Firefox

Full support Yes

IE

Full support 11

Opera

Full support 45

Safari

Full support Yes

WebView Android

Full support 58

Chrome Android

Full support 58

Firefox Android

Full support Yes

Opera Android

Full support 43

Safari iOS

?

Samsung Internet Android

Full support 7.0

performance Chrome

Full support 6

Edge

Full support 12

Firefox

Full support 7

IE

Full support 9

Opera

Full support 15

Safari

Full support 8

WebView Android

Full support Yes

Chrome Android

Full support Yes

Firefox Android

Full support 7

Opera Android

Full support 14

Safari iOS

Full support 9

Samsung Internet Android

Full support Yes

personalbar Chrome

Full support 1

Edge

Full support 12

Firefox

Full support 1

IE

No support No

Opera

Full support ≤12.1

Safari

Full support 3

WebView Android

Full support 1

Chrome Android

Full support 18

Firefox Android

Full support 4

Opera Android

Full support ≤12.1

Safari iOS

Full support 1

Samsung Internet Android

Full support 1.0

pkcs11

Deprecated'Non-standard'

Chrome

No support No

Edge

No support No

Firefox

No support ? — 29

IE

?

Opera

?

Safari

?

WebView Android

No support No

Chrome Android

No support No

Firefox Android

No support ? — 29

Opera Android

?

Safari iOS

?

Samsung Internet Android

No support No

popstate event

Chrome Full support 5

Notes'

Full support 5

Notes'

Notes' Before version 34, Chrome would fire a popstate event on page load.

Edge

Full support 12

Firefox Full support 4

Notes'

Full support 4

Notes'

Notes' Firefox emits a popstate event on page load.

IE

Full support 10

Opera

Full support 11.5

Safari Full support 6

Notes'

Full support 6

Notes'

Notes' Before version 10, Safari would fire a popstate event on page load.

WebView Android Full support ≤37

Notes'

Full support ≤37

Notes'

Notes' Before version 37, WebView would fire a popstate event on page load.

Chrome Android Full support 18

Notes'

Full support 18

Notes'

Notes' Before version 34, Chrome would fire a popstate event on page load.

Firefox Android Full support 4

Notes'

Full support 4

Notes'

Notes' Firefox emits a popstate event on page load.

Opera Android

Full support 11.5

Safari iOS Full support 5.1

Notes'

Full support 5.1

Notes'

Notes' Before version 10, Safari would fire a popstate event on page load.

Samsung Internet Android Full support 1.0

Notes'

Full support 1.0

Notes'

Notes' Before version 2.0, Samsung Internet would fire a popstate event on page load.

postMessage Chrome

Full support 1

Edge

Full support 12

Firefox Full support 8

Notes'

Full support 8

Notes'

Notes' 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. Full support 6

Notes'

Notes' 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. No support 3 — 6

Notes'

Notes' The message parameter must be a string.

IE Full support 10

Notes'

Full support 10

Notes'

Notes' IE10 had an important limitation: see this article for details. No support 8 — 10

Notes'

Notes' Support only for <frame> and <iframe>.

Opera

Full support 9.5

Safari

Full support 4

WebView Android

Full support 1

Chrome Android

Full support 18

Firefox Android Full support 8

Notes'

Full support 8

Notes'

Notes' 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. Full support 6

Notes'

Notes' 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. No support 4 — 6

Notes'

Notes' The message parameter must be a string.

Opera Android

Full support 10.1

Safari iOS

Full support 3.2

Samsung Internet Android

Full support 1.0

print

Chrome Full support 1

Notes'

Full support 1

Notes'

Notes' Starting with Chrome 46, this method is blocked inside an <iframe> unless its sandbox attribute has the value allow-modals.

Edge

Full support 12

Firefox

Full support 1

IE

Full support 5

Opera Full support 6

Notes'

Full support 6

Notes'

Notes' Starting with Opera 33, this method is blocked inside an <iframe> unless its sandbox attribute has the value allow-modals.

Safari

Full support 1.1

WebView Android Full support 1

Notes'

Full support 1

Notes'

Notes' Starting with WebView 46, this method is blocked inside an <iframe> unless its sandbox attribute has the value allow-modals.

Chrome Android Full support 18

Notes'

Full support 18

Notes'

Notes' Starting with Chrome 46, this method is blocked inside an <iframe> unless its sandbox attribute has the value allow-modals.

Firefox Android No support No

Notes'

No support No

Notes'

Notes' See bug 1247609.

Opera Android Full support 10.1

Notes'

Full support 10.1

Notes'

Notes' Starting with Opera 33, this method is blocked inside an <iframe> unless its sandbox attribute has the value allow-modals.

Safari iOS

Full support 1

Samsung Internet Android Full support 1.0

Notes'

Full support 1.0

Notes'

Notes' Starting with Samsung Internet 5.0, this method is blocked inside an <iframe> unless its sandbox attribute has the value allow-modals.

prompt

Chrome Full support 1

Notes'

Full support 1

Notes'

Notes' Starting with Chrome 46, this method is blocked inside an <iframe> unless its sandbox attribute has the value allow-modals.

Edge

Full support 12

Firefox

Full support 1

IE Full support 4

Notes'

Full support 4

Notes'

Notes' 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.

Opera Full support 3

Notes'

Full support 3

Notes'

Notes' Starting with Opera 33, this method is blocked inside an <iframe> unless its sandbox attribute has the value allow-modals.

Safari

Full support 1

WebView Android Full support 1

Notes'

Full support 1

Notes'

Notes' Starting with WebView 46, this method is blocked inside an <iframe> unless its sandbox attribute has the value allow-modals.

Chrome Android Full support 18

Notes'

Full support 18

Notes'

Notes' Starting with Chrome 46, this method is blocked inside an <iframe> unless its sandbox attribute has the value allow-modals.

Firefox Android

Full support 4

Opera Android Full support 10.1

Notes'

Full support 10.1

Notes'

Notes' Starting with Opera 33, this method is blocked inside an <iframe> unless its sandbox attribute has the value allow-modals.

Safari iOS

Full support 1

Samsung Internet Android Full support 1.0

Notes'

Full support 1.0

Notes'

Notes' Starting with Samsung Internet 5.0, this method is blocked inside an <iframe> unless its sandbox attribute has the value allow-modals.

rejectionhandled event Chrome

Full support 49

Edge

Full support ≤79

Firefox Full support 69


Full support 69


Full support 68

Disabled'

Disabled' From version 68: this feature is behind the dom.promise_rejection_events.enabled preference (needs to be set to true). To change preferences in Firefox, visit about:config.

IE

No support No

Opera

Full support 36

Safari

Full support 11

WebView Android

Full support 49

Chrome Android

Full support 49

Firefox Android Full support 68

Disabled'

Full support 68

Disabled'

Disabled' From version 68: this feature is behind the dom.promise_rejection_events.enabled preference (needs to be set to true). To change preferences in Firefox, visit about:config.

Opera Android

Full support 36

Safari iOS

Full support 11.3

Samsung Internet Android

Full support 5.0

releaseEvents

Deprecated'Non-standard'

Chrome

Full support 1

Edge

Full support 12

Firefox

Full support 1

IE

Full support 11

Opera

Full support ≤12.1

Safari

Full support 1

WebView Android

Full support 1

Chrome Android

Full support 18

Firefox Android

Full support 4

Opera Android

Full support ≤12.1

Safari iOS

Full support 1

Samsung Internet Android

Full support 1.0

requestAnimationFrame

Chrome Full support 24


Full support 24


Full support 10

Prefixed'

Prefixed' Implemented with the vendor prefix: webkit

Edge

Full support 12

Firefox Full support 23

Notes'

Full support 23

Notes'

Notes' Callback parameter is a DOMHighResTimestamp. This means ten microsecond precision and zero time as performance.now(). No support 11 — 42

Prefixed' Notes'

Prefixed' Implemented with the vendor prefix: moz Notes' Callback parameter is a DOMTimestamp. This means millisecond precision and zero time as Date.now(). No support 4 — 11

Prefixed' Notes'

Prefixed' Implemented with the vendor prefix: moz Notes' Could be called with no input parameters.

IE

Full support 10

Opera Full support 15


Full support 15


Full support 15

Prefixed'

Prefixed' Implemented with the vendor prefix: webkit

Safari Full support 6.1


Full support 6.1


Full support 6

Prefixed'

Prefixed' Implemented with the vendor prefix: webkit

WebView Android Full support ≤37


Full support ≤37


Full support ≤37

Prefixed'

Prefixed' Implemented with the vendor prefix: webkit

Chrome Android Full support 25


Full support 25


Full support 18

Prefixed'

Prefixed' Implemented with the vendor prefix: webkit

Firefox Android Full support 23


Full support 23


No support 14 — 42

Prefixed'

Prefixed' Implemented with the vendor prefix: moz

Opera Android Full support 14


Full support 14


Full support 14

Prefixed'

Prefixed' Implemented with the vendor prefix: webkit

Safari iOS Full support 7


Full support 7


Full support 6.1

Prefixed'

Prefixed' Implemented with the vendor prefix: webkit

Samsung Internet Android Full support 1.5


Full support 1.5


Full support 1.0

Prefixed'

Prefixed' Implemented with the vendor prefix: webkit

requestFileSystem

Experimental'Non-standard'

Chrome Full support 13

Prefixed'

Full support 13

Prefixed'

Prefixed' Implemented with the vendor prefix: webkit

Edge Full support ≤18

Prefixed'

Full support ≤18

Prefixed'

Prefixed' Implemented with the vendor prefix: webkit

Firefox

No support No

IE

No support No

Opera

No support No

Safari

No support No

WebView Android Full support 37

Prefixed'

Full support 37

Prefixed'

Prefixed' Implemented with the vendor prefix: webkit

Chrome Android Full support Yes

Prefixed'

Full support Yes

Prefixed'

Prefixed' Implemented with the vendor prefix: webkit

Firefox Android

No support No

Opera Android

No support No

Safari iOS

No support No

Samsung Internet Android Full support Yes

Prefixed'

Full support Yes

Prefixed'

Prefixed' Implemented with the vendor prefix: webkit

requestIdleCallback

Experimental'

Chrome

Full support 47

Edge

Full support 79

Firefox Full support 55

Notes'

Full support 55

Notes'

Notes' Enabled by default. No support 53 — 55

Notes'

Notes' Implemented but disabled by default.

IE

No support No

Opera

Full support 34

Safari

No support No

WebView Android

Full support 47

Chrome Android

Full support 47

Firefox Android Full support 55

Notes'

Full support 55

Notes'

Notes' Enabled by default. No support 53 — 55

Notes'

Notes' Implemented but disabled by default.

Opera Android

Full support 34

Safari iOS

No support No

Samsung Internet Android

Full support 5.0

resize event

Chrome Full support 1

Notes'

Full support 1

Notes'

Notes' Chrome does not emit a resize event on page load.

Edge Full support 12

Notes'

Full support 12

Notes'

Notes' Prior to Edge 79, Edge emitted a resize event on page load. This is no longer the case.

Firefox Full support 1

Notes'

Full support 1

Notes'

Notes' Prior to Firefox 68, Firefox emitted a resize event on page load. This is no longer the case.

IE

Full support 4

Opera Full support 7

Notes'

Full support 7

Notes'

Notes' Opera does not emit a resize event on page load.

Safari

Full support 1.1

WebView Android Full support 1

Notes'

Full support 1

Notes'

Notes' Webview does not emit a resize event on page load.

Chrome Android Full support 18

Notes'

Full support 18

Notes'

Notes' Chrome does not emit a resize event on page load.

Firefox Android Full support 4

Notes'

Full support 4

Notes'

Notes' Prior to Firefox 68, Firefox emitted a resize event on page load. This is no longer the case.

Opera Android Full support 10.1

Notes'

Full support 10.1

Notes'

Notes' Opera does not emit a resize event on page load.

Safari iOS

Full support 1

Samsung Internet Android Full support 1.0

Notes'

Full support 1.0

Notes'

Notes' Samsung Internet does not emit a resize event on page load.

resizeBy Chrome

Full support 1

Edge

Full support 12

Firefox Full support 1

Notes'

Full support 1

Notes'

Notes' 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.

IE

Full support 4

Opera

Full support ≤12.1

Safari

Full support 1

WebView Android

Full support 1

Chrome Android

Full support 18

Firefox Android

Full support 4

Opera Android

Full support ≤12.1

Safari iOS

Full support 1

Samsung Internet Android

Full support 1.0

resizeTo Chrome

Full support 1

Edge

Full support 12

Firefox Full support 1

Notes'

Full support 1

Notes'

Notes' 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.

IE

Full support 4

Opera

Full support ≤12.1

Safari

Full support 1

WebView Android

Full support 1

Chrome Android

Full support 18

Firefox Android

Full support 4

Opera Android

Full support ≤12.1

Safari iOS

Full support 1

Samsung Internet Android

Full support 1.0

resolveLocalFileSystemURL

Experimental'Non-standard'

Chrome Full support 13

Prefixed'

Full support 13

Prefixed'

Prefixed' Implemented with the vendor prefix: webkit

Edge Full support ≤79

Prefixed'

Full support ≤79

Prefixed'

Prefixed' Implemented with the vendor prefix: webkit

Firefox

No support No

IE

No support No

Opera

No support No

Safari

No support No

WebView Android Full support Yes

Prefixed'

Full support Yes

Prefixed'

Prefixed' Implemented with the vendor prefix: webkit

Chrome Android Full support Yes

Prefixed'

Full support Yes

Prefixed'

Prefixed' Implemented with the vendor prefix: webkit

Firefox Android

No support No

Opera Android

No support No

Safari iOS

No support No

Samsung Internet Android Full support Yes

Prefixed'

Full support Yes

Prefixed'

Prefixed' Implemented with the vendor prefix: webkit

restore Chrome

No support No

Edge

No support No

Firefox

No support No

IE

?

Opera

?

Safari

?

WebView Android

No support No

Chrome Android

No support No

Firefox Android

No support No

Opera Android

?

Safari iOS

?

Samsung Internet Android

No support No

returnValue Chrome

No support No

Edge

No support No

Firefox

No support No

IE

?

Opera

?

Safari

?

WebView Android

No support No

Chrome Android

No support No

Firefox Android

No support No

Opera Android

?

Safari iOS

?

Samsung Internet Android

No support No

routeEvent

Deprecated'Non-standard'

Chrome

No support No

Edge

No support No

Firefox

No support No

IE

No support No

Opera

No support No

Safari

No support No

WebView Android

No support No

Chrome Android

No support No

Firefox Android

No support No

Opera Android

No support No

Safari iOS

No support No

Samsung Internet Android

No support No

screen Chrome

Full support 1

Edge

Full support 12

Firefox

Full support 1

IE

Full support 4

Opera

Full support ≤12.1

Safari

Full support 1

WebView Android

Full support 1

Chrome Android

Full support 18

Firefox Android

Full support 4

Opera Android

Full support ≤12.1

Safari iOS

Full support 1

Samsung Internet Android

Full support 1.0

screenLeft Chrome

Full support 1

Edge

Full support 12

Firefox

Full support 64

IE

Full support 5

Opera

Full support ≤12.1

Safari

Full support 1

WebView Android

Full support 1

Chrome Android

Full support 18

Firefox Android

Full support 64

Opera Android

Full support ≤12.1

Safari iOS

Full support 1

Samsung Internet Android

Full support 1.0

screenTop Chrome

Full support 1

Edge

Full support 12

Firefox

Full support 64

IE

Full support 5

Opera

Full support ≤12.1

Safari

Full support 1

WebView Android

Full support 1

Chrome Android

Full support 18

Firefox Android

Full support 64

Opera Android

Full support ≤12.1

Safari iOS

Full support 1

Samsung Internet Android

Full support 1.0

screenX Chrome

Full support 1

Edge

Full support 12

Firefox Full support 1

Notes'

Full support 1

Notes'

Notes' 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.

IE

Full support 9

Opera

Full support ≤12.1

Safari

Full support 1

WebView Android

Full support 1

Chrome Android

Full support 18

Firefox Android Full support 4

Notes'

Full support 4

Notes'

Notes' 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.

Opera Android

Full support ≤12.1

Safari iOS

Full support 1

Samsung Internet Android

Full support 1.0

screenY Chrome

Full support 1

Edge

Full support 12

Firefox Full support 1

Notes'

Full support 1

Notes'

Notes' 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.

IE

Full support 9

Opera

Full support ≤12.1

Safari

Full support 1

WebView Android

Full support 1

Chrome Android

Full support 18

Firefox Android Full support 4

Notes'

Full support 4

Notes'

Notes' 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.

Opera Android

Full support ≤12.1

Safari iOS

Full support 1

Samsung Internet Android

Full support 1.0

scroll Chrome

Full support 1

Edge

Full support 12

Firefox

Full support 1

IE

Full support 4

Opera

Full support 3

Safari

Full support 1

WebView Android

Full support 1

Chrome Android

Full support 18

Firefox Android

Full support 4

Opera Android

Full support 10.1

Safari iOS

Full support 1

Samsung Internet Android

Full support 1.0

scrollbars Chrome

Full support 1

Edge

Full support 12

Firefox

Full support 1

IE

No support No

Opera

Full support ≤12.1

Safari

Full support 3

WebView Android

Full support 1

Chrome Android

Full support 18

Firefox Android

Full support 4

Opera Android

Full support ≤12.1

Safari iOS

Full support 1

Samsung Internet Android

Full support 1.0

scrollBy Chrome

Full support 1

Edge Full support 79


Full support 79


No support 12 — 79

Notes'

Notes' Only scrollBy(x-coord, y-coord) is supported.

Firefox

Full support 1

IE Partial support 11

Notes'

Partial support 11

Notes'

Notes' Only scrollBy(x-coord, y-coord) is supported.

Opera

Full support 3

Safari

Full support 1

WebView Android

Full support 1

Chrome Android

Full support 18

Firefox Android

Full support 4

Opera Android

Full support 10.1

Safari iOS

Full support 1

Samsung Internet Android

Full support 1.0

scrollByLines

Non-standard'

Chrome

No support No

Edge

No support No

Firefox

Full support Yes

IE

?

Opera

?

Safari

No support No

WebView Android

No support No

Chrome Android

No support No

Firefox Android

Full support Yes

Opera Android

?

Safari iOS

No support No

Samsung Internet Android

No support No

scrollByPages

Non-standard'

Chrome

No support No

Edge

No support No

Firefox

Full support Yes

IE

?

Opera

?

Safari

No support No

WebView Android

No support No

Chrome Android

No support No

Firefox Android

Full support Yes

Opera Android

?

Safari iOS

No support No

Samsung Internet Android

No support No

scrollMaxX

Non-standard'

Chrome

No support No

Edge

No support No

Firefox

Full support Yes

IE

?

Opera

?

Safari

No support No

WebView Android

No support No

Chrome Android

No support No

Firefox Android

Full support Yes

Opera Android

?

Safari iOS

No support No

Samsung Internet Android

No support No

scrollMaxY

Non-standard'

Chrome

No support No

Edge

No support No

Firefox

Full support Yes

IE

?

Opera

?

Safari

?

WebView Android

No support No

Chrome Android

No support No

Firefox Android

Full support Yes

Opera Android

?

Safari iOS

?

Samsung Internet Android

No support No

scrollTo Chrome

Full support 1

Edge

Full support 12

Firefox

Full support 1

IE

Full support 4

Opera

Full support 4

Safari

Full support 1

WebView Android

Full support 1

Chrome Android

Full support 18

Firefox Android

Full support 4

Opera Android

Full support 10.1

Safari iOS

Full support 1

Samsung Internet Android

Full support 1.0

scrollX

Chrome Full support 1


Full support 1


Full support 1

Alternate Name'

Alternate Name' Uses the non-standard name: pageXOffset

Edge Full support 12


Full support 12


Full support 12

Alternate Name'

Alternate Name' Uses the non-standard name: pageXOffset

Firefox Full support 1


Full support 1


Full support 1

Alternate Name'

Alternate Name' Uses the non-standard name: pageXOffset

IE Full support 9

Alternate Name'

Full support 9

Alternate Name'

Alternate Name' Uses the non-standard name: pageXOffset

Opera Full support 9.6


Full support 9.6


Full support 4

Alternate Name'

Alternate Name' Uses the non-standard name: pageXOffset

Safari Full support 1


Full support 1


Full support 1

Alternate Name'

Alternate Name' Uses the non-standard name: pageXOffset

WebView Android Full support 1


Full support 1


Full support 1

Alternate Name'

Alternate Name' Uses the non-standard name: pageXOffset

Chrome Android Full support 18


Full support 18


Full support 18

Alternate Name'

Alternate Name' Uses the non-standard name: pageXOffset

Firefox Android Full support 4


Full support 4


Full support 4

Alternate Name'

Alternate Name' Uses the non-standard name: pageXOffset

Opera Android Full support 10.1


Full support 10.1


Full support 10.1

Alternate Name'

Alternate Name' Uses the non-standard name: pageXOffset

Safari iOS Full support 1


Full support 1


Full support 1

Alternate Name'

Alternate Name' Uses the non-standard name: pageXOffset

Samsung Internet Android Full support 1.0


Full support 1.0


Full support 1.0

Alternate Name'

Alternate Name' Uses the non-standard name: pageXOffset

scrollY

Chrome Full support 1


Full support 1


Full support 1

Alternate Name'

Alternate Name' Uses the non-standard name: pageYOffset

Edge Full support 12


Full support 12


Full support 12

Alternate Name'

Alternate Name' Uses the non-standard name: pageYOffset

Firefox Full support 1


Full support 1


Full support 1

Alternate Name'

Alternate Name' Uses the non-standard name: pageYOffset

IE Full support 9

Alternate Name'

Full support 9

Alternate Name'

Alternate Name' Uses the non-standard name: pageYOffset

Opera Full support 9.6


Full support 9.6


Full support 4

Alternate Name'

Alternate Name' Uses the non-standard name: pageYOffset

Safari Full support 1


Full support 1


Full support 1

Alternate Name'

Alternate Name' Uses the non-standard name: pageYOffset

WebView Android Full support 1


Full support 1


Full support 1

Alternate Name'

Alternate Name' Uses the non-standard name: pageYOffset

Chrome Android Full support 18


Full support 18


Full support 18

Alternate Name'

Alternate Name' Uses the non-standard name: pageYOffset

Firefox Android Full support 4


Full support 4


Full support 4

Alternate Name'

Alternate Name' Uses the non-standard name: pageYOffset

Opera Android Full support 10.1


Full support 10.1


Full support 10.1

Alternate Name'

Alternate Name' Uses the non-standard name: pageYOffset

Safari iOS Full support 1


Full support 1


Full support 1

Alternate Name'

Alternate Name' Uses the non-standard name: pageYOffset

Samsung Internet Android Full support 1.0


Full support 1.0


Full support 1.0

Alternate Name'

Alternate Name' Uses the non-standard name: pageYOffset

self Chrome

Full support 1

Edge

Full support 12

Firefox

Full support 1

IE

Full support 4

Opera

Full support ≤12.1

Safari

Full support 3

WebView Android

Full support 1

Chrome Android

Full support 18

Firefox Android

Full support 4

Opera Android

Full support ≤12.1

Safari iOS

Full support 1

Samsung Internet Android

Full support 1.0

sessionStorage Chrome

Full support 5

Edge

Full support 12

Firefox

Full support 2

IE

Full support 8

Opera

Full support 10.5

Safari

Full support 4

WebView Android

Full support ≤37

Chrome Android

Full support 18

Firefox Android

Full support 4

Opera Android

Full support 11

Safari iOS

Full support 3.2

Samsung Internet Android

Full support 1.0

setCursor

Non-standard'

Chrome

No support No

Edge

No support No

Firefox

No support No

IE

?

Opera

?

Safari

?

WebView Android

No support No

Chrome Android

No support No

Firefox Android

No support No

Opera Android

?

Safari iOS

?

Samsung Internet Android

No support No

setImmediate

Non-standard'

Chrome

No support No

Edge

No support 12 — 79

Firefox

No support No

IE

Full support 10

Opera

No support No

Safari

No support No

WebView Android

No support No

Chrome Android

No support No

Firefox Android

No support No

Opera Android

No support No

Safari iOS

No support No

Samsung Internet Android

No support No

setResizable

Non-standard'

Chrome

No support No

Edge

No support No

Firefox

Full support Yes

IE

?

Opera

?

Safari

?

WebView Android

No support No

Chrome Android

No support No

Firefox Android

Full support Yes

Opera Android

?

Safari iOS

?

Samsung Internet Android

No support No

showModalDialog

Deprecated'Non-standard'

Chrome

No support ? — 43

Edge

No support No

Firefox

No support 3 — 56

IE

Full support 4

Opera

No support No

Safari Full support 5.1

Notes'

Full support 5.1

Notes'

Notes' See WebKit bug 151885 for possible future removal from Safari.

WebView Android

No support No

Chrome Android

No support No

Firefox Android

No support No

Opera Android

No support No

Safari iOS

No support No

Samsung Internet Android

No support No

sidebar

Deprecated'Non-standard'

Chrome

No support No

Edge

No support No

Firefox Full support Yes

Notes'

Full support Yes

Notes'

Notes' From Firefox 78 AddSearchProvider() does nothing, as the specification requires.

IE

?

Opera

?

Safari

?

WebView Android

No support No

Chrome Android

No support No

Firefox Android

Full support Yes

Opera Android

?

Safari iOS

?

Samsung Internet Android

No support No

sizeToContent

Non-standard'

Chrome

No support No

Edge

No support No

Firefox Full support Yes


Full support Yes


Full support 20

Notes'

Notes' The mimimal size is clamped to prevent the window from being too small for the user to interact with.

IE

?

Opera

?

Safari

?

WebView Android

No support No

Chrome Android

No support No

Firefox Android Full support Yes

Notes'

Full support Yes

Notes'

Notes' This method has no effect as a page is always in a tab.

Opera Android

?

Safari iOS

?

Samsung Internet Android

No support No

speechSynthesis Chrome

Full support 33

Edge

Full support 14

Firefox

Full support 49

IE

No support No

Opera

Full support Yes

Safari

Full support 7

WebView Android

Full support 37

Chrome Android

Full support Yes

Firefox Android

No support No

Opera Android

No support No

Safari iOS

Full support 7

Samsung Internet Android

Full support Yes

status Chrome

Full support 1

Edge

Full support 12

Firefox

Full support 1

IE

Full support 4

Opera

Full support ≤12.1

Safari

Full support 1

WebView Android

Full support 1

Chrome Android

Full support 18

Firefox Android

Full support 4

Opera Android

Full support ≤12.1

Safari iOS

Full support 1

Samsung Internet Android

Full support 1.0

statusbar Chrome

Full support 1

Edge

Full support 12

Firefox

Full support 1

IE

No support No

Opera

Full support 15

Safari

Full support 3

WebView Android

Full support 1

Chrome Android

Full support 18

Firefox Android

Full support 4

Opera Android

Full support 14

Safari iOS

Full support 1

Samsung Internet Android

Full support 1.0

stop Chrome

Full support 1

Edge

Full support 14

Firefox

Full support 1

IE

No support No

Opera

Full support ≤12.1

Safari

Full support 3

WebView Android

Full support 1

Chrome Android

Full support 18

Firefox Android

Full support 4

Opera Android

Full support ≤12.1

Safari iOS

Full support 1

Samsung Internet Android

Full support 1.0

storage event Chrome

Full support 1

Edge

Full support ≤18

Firefox

Full support 45

IE

?

Opera

Full support 15

Safari

?

WebView Android

Full support ≤37

Chrome Android

Full support 18

Firefox Android

Full support 45

Opera Android

Full support 14

Safari iOS

?

Samsung Internet Android

Full support 1.0

toolbar Chrome

Full support 1

Edge

Full support 12

Firefox

Full support 1

IE

No support No

Opera

Full support 15

Safari

Full support 3

WebView Android

Full support 1

Chrome Android

Full support 18

Firefox Android

Full support 4

Opera Android

Full support 14

Safari iOS

Full support 1

Samsung Internet Android

Full support 1.0

top Chrome

Full support 1

Edge

Full support 12

Firefox Full support 1

Notes'

Full support 1

Notes'

Notes' Starting in Firefox 6, this property is read only, as defined by the standard.

IE

Full support 4

Opera

Full support ≤12.1

Safari

Full support 3

WebView Android

Full support 1

Chrome Android

Full support 18

Firefox Android

Full support 4

Opera Android

Full support ≤12.1

Safari iOS

Full support 1

Samsung Internet Android

Full support 1.0

transitioncancel event Chrome

No support No

Edge

No support No

Firefox

Full support 53

IE

?

Opera

?

Safari Full support 13.1


Full support 13.1


Full support 12

Disabled'

Disabled' From version 12: this feature is behind the Web Animations preference and the CSS Animations via Web Animations preference.

WebView Android

No support No

Chrome Android

No support No

Firefox Android

Full support 53

Opera Android

?

Safari iOS Full support 13.4


Full support 13.4


Full support 12

Disabled'

Disabled' From version 12: this feature is behind the Web Animations preference and the CSS Animations via Web Animations preference.

Samsung Internet Android

No support No

transitionend event Chrome

No support No

Edge

No support No

Firefox

Full support 51

IE

?

Opera

?

Safari

Full support Yes

WebView Android

No support No

Chrome Android

No support No

Firefox Android

Full support 51

Opera Android

?

Safari iOS

Full support Yes

Samsung Internet Android

No support No

transitionrun event Chrome

No support No

Edge

No support No

Firefox

Full support 53

IE

?

Opera

?

Safari Full support 13.1


Full support 13.1


Full support 12

Disabled'

Disabled' From version 12: this feature is behind the Web Animations preference and the CSS Animations via Web Animations preference.

WebView Android

No support No

Chrome Android

No support No

Firefox Android

Full support 53

Opera Android

?

Safari iOS Full support 13.4


Full support 13.4


Full support 12

Disabled'

Disabled' From version 12: this feature is behind the Web Animations preference and the CSS Animations via Web Animations preference.

Samsung Internet Android

No support No

transitionstart event Chrome

No support No

Edge

No support No

Firefox

Full support 53

IE

?

Opera

?

Safari Full support 13.1


Full support 13.1


Full support 12

Disabled'

Disabled' From version 12: this feature is behind the Web Animations preference and the CSS Animations via Web Animations preference.

WebView Android

No support No

Chrome Android

No support No

Firefox Android

Full support 53

Opera Android

?

Safari iOS Full support 13.4


Full support 13.4


Full support 12

Disabled'

Disabled' From version 12: this feature is behind the Web Animations preference and the CSS Animations via Web Animations preference.

Samsung Internet Android

No support No

unhandledrejection event Chrome

Full support 49

Edge

Full support ≤79

Firefox Full support 69


Full support 69


Full support 68

Disabled'

Disabled' From version 68: this feature is behind the dom.promise_rejection_events.enabled preference (needs to be set to true). To change preferences in Firefox, visit about:config.

IE

No support No

Opera

Full support 36

Safari

Full support 11

WebView Android

Full support 49

Chrome Android

Full support 49

Firefox Android Full support 68

Disabled'

Full support 68

Disabled'

Disabled' From version 68: this feature is behind the dom.promise_rejection_events.enabled preference (needs to be set to true). To change preferences in Firefox, visit about:config.

Opera Android

Full support 36

Safari iOS

Full support 11.3

Samsung Internet Android

Full support 5.0

unload event Chrome

Full support 1

Edge

Full support 12

Firefox

Full support 1

IE

Full support 4

Opera

Full support 4

Safari

Full support 3

WebView Android

Full support 1

Chrome Android

Full support 18

Firefox Android

Full support 4

Opera Android

Full support 10.1

Safari iOS

Full support 1

Samsung Internet Android

Full support 1.0

updateCommands

Non-standard'

Chrome

No support No

Edge

No support No

Firefox

Full support Yes

IE

?

Opera

?

Safari

?

WebView Android

No support No

Chrome Android

No support No

Firefox Android

Full support Yes

Opera Android

?

Safari iOS

?

Samsung Internet Android

No support No

visualViewport

Experimental'

Chrome

Full support 61

Edge

Full support 79

Firefox Full support 63

Disabled'

Full support 63

Disabled'

Disabled' From version 63: this feature is behind the dom.visualviewport.enabled preference (needs to be set to true). To change preferences in Firefox, visit about:config.

IE

No support No

Opera

Full support 48

Safari

Full support 13

WebView Android

Full support 61

Chrome Android

Full support 61

Firefox Android Full support 63

Disabled'

Full support 63

Disabled'

Disabled' From version 63: this feature is behind the dom.visualviewport.enabled preference (needs to be set to true). To change preferences in Firefox, visit about:config.

Opera Android

Full support 45

Safari iOS

Full support 13

Samsung Internet Android

Full support 8.0

vrdisplayactivate event

Experimental'

Chrome

No support No

Edge

No support No

Firefox Full support 55

Notes'

Full support 55

Notes'

Notes' Windows support was enabled in Firefox 55. Full support 64

Notes'

Notes' macOS support was enabled in Firefox 64.

IE

No support No

Opera

No support No

Safari

No support No

WebView Android

No support No

Chrome Android

No support No

Firefox Android

Full support 55

Opera Android

No support No

Safari iOS

No support No

Samsung Internet Android

No support No

vrdisplayblur event

Experimental'

Chrome

No support No

Edge

No support No

Firefox

No support No

IE

No support No

Opera

No support No

Safari

No support No

WebView Android

No support No

Chrome Android

No support No

Firefox Android

No support No

Opera Android

No support No

Safari iOS

No support No

Samsung Internet Android

No support No

vrdisplayconnect event

Experimental'

Chrome No support No

Disabled'

No support No

Disabled'

Disabled' This feature is behind the WebVR preference (needs to be set to Enabled). To change preferences in Chrome, visit chrome://flags.

Edge

No support 15 — 79

Firefox Full support 55

Notes'

Full support 55

Notes'

Notes' Windows support was enabled in Firefox 55. Full support 64

Notes'

Notes' macOS support was enabled in Firefox 64.

IE

No support No

Opera

No support No

Safari

No support No

WebView Android

No support No

Chrome Android Full support Yes

Notes'

Full support Yes

Notes'

Notes' Chrome for Android 56 supports only Google Daydream View. Notes' Chrome for Android 57 adds support for Google Cardboard.

Firefox Android

Full support 55

Opera Android

No support No

Safari iOS

No support No

Samsung Internet Android Full support Yes

Notes'

Full support Yes

Notes'

Notes' Supported on Samsung Internet for GearVR.

vrdisplaydeactivate event

Experimental'

Chrome

No support No

Edge

No support No

Firefox Full support 55

Notes'

Full support 55

Notes'

Notes' Windows support was enabled in Firefox 55. Full support 64

Notes'

Notes' macOS support was enabled in Firefox 64.

IE

No support No

Opera

No support No

Safari

No support No

WebView Android

No support No

Chrome Android

No support No

Firefox Android

Full support 55

Opera Android

No support No

Safari iOS

No support No

Samsung Internet Android

No support No

vrdisplaydisconnect event

Experimental'

Chrome No support No

Disabled'

No support No

Disabled'

Disabled' This feature is behind the WebVR preference (needs to be set to Enabled). To change preferences in Chrome, visit chrome://flags.

Edge

No support 15 — 79

Firefox Full support 55

Notes'

Full support 55

Notes'

Notes' Windows support was enabled in Firefox 55. Full support 64

Notes'

Notes' macOS support was enabled in Firefox 64.

IE

No support No

Opera

No support No

Safari

No support No

WebView Android

No support No

Chrome Android Full support 56

Notes'

Full support 56

Notes'

Notes' Chrome for Android 56 supports only Google Daydream View. Notes' Chrome for Android 57 adds support for Google Cardboard.

Firefox Android

Full support 55

Opera Android

No support No

Safari iOS

No support No

Samsung Internet Android Full support 6.0

Notes'

Full support 6.0

Notes'

Notes' Supported on Samsung Internet for GearVR.

vrdisplayfocus event

Experimental'

Chrome

No support No

Edge

No support 15 — 79

Firefox

No support No

IE

No support No

Opera

No support No

Safari

No support No

WebView Android

No support No

Chrome Android

No support No

Firefox Android

No support No

Opera Android

No support No

Safari iOS

No support No

Samsung Internet Android

No support No

vrdisplaypointerrestricted event

Experimental'

Chrome

No support No

Edge

No support 15 — 79

Firefox

No support No

IE

No support No

Opera

No support No

Safari

No support No

WebView Android

No support No

Chrome Android

No support No

Firefox Android

No support No

Opera Android

No support No

Safari iOS

No support No

Samsung Internet Android

No support No

vrdisplaypointerunrestricted event

Experimental'

Chrome

No support No

Edge

No support 15 — 79

Firefox

No support No

IE

No support No

Opera

No support No

Safari

No support No

WebView Android

No support No

Chrome Android

No support No

Firefox Android

No support No

Opera Android

No support No

Safari iOS

No support No

Samsung Internet Android

No support No

vrdisplaypresentchange event

Experimental'

Chrome Full support 65

Disabled'

Full support 65

Disabled'

Disabled' From version 65: this feature is behind the WebVR preference (needs to be set to Enabled). To change preferences in Chrome, visit chrome://flags.

Edge

Full support 15

Firefox Full support 55

Notes'

Full support 55

Notes'

Notes' Windows support was enabled in Firefox 55. Full support 64

Notes'

Notes' macOS support was enabled in Firefox 64.

IE

No support No

Opera

No support No

Safari

No support No

WebView Android

No support No

Chrome Android Full support 56

Notes'

Full support 56

Notes'

Notes' Chrome for Android 56 supports only Google Daydream View. Notes' Chrome for Android 57 adds support for Google Cardboard.

Firefox Android

Full support 55

Opera Android

No support No

Safari iOS

No support No

Samsung Internet Android Full support 6.0

Notes'

Full support 6.0

Notes'

Notes' Supported on Samsung Internet for GearVR.

window Chrome

Full support 1

Edge

Full support 12

Firefox

Full support 1

IE

Full support 4

Opera

Full support ≤12.1

Safari

Full support 3

WebView Android

Full support 1

Chrome Android

Full support 18

Firefox Android

Full support 4

Opera Android

Full support ≤12.1

Safari iOS

Full support 1

Samsung Internet Android

Full support 1.0

Legend

Full support  
Full support
Partial support  
Partial support
No support  
No support
Compatibility unknown  
Compatibility unknown
Experimental. Expect behavior to change in the future.'
Experimental. Expect behavior to change in the future.
Non-standard. Expect poor cross-browser support.'
Non-standard. Expect poor cross-browser support.
Deprecated. Not for use in new websites.'
Deprecated. Not for use in new websites.
See implementation notes.'
See implementation notes.
User must explicitly enable this feature.'
User must explicitly enable this feature.
Uses a non-standard name.'
Uses a non-standard name.
Requires a vendor prefix or different name for use.'
Requires a vendor prefix or different name for use.


Window by Mozilla Contributors is licensed under CC-BY-SA 2.5.