The Window interface represents a window containing a DOM document; the document property points to the DOM document loaded in that window. A window for a given document can be obtained using the document.defaultView property.
A global variable, window, representing the window in which the script is running, is exposed to JavaScript code.
The Window interface is home to a variety of functions, namespaces, objects, and constructors which are not necessarily directly associated with the concept of a user interface window. However, the Window interface is a suitable place to include these items that need to be globally available. Many of these are documented in the JavaScript Reference and the DOM Reference.
In a tabbed browser, each tab is represented by its own Window object; the global window seen by JavaScript code running within a given tab always represents the tab in which the code is running. That said, even in a tabbed browser, some properties and methods still apply to the overall window that contains the tab, such as resizeTo() and innerHeight. Generally, anything that can't reasonably pertain to a tab pertains to the window instead.
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
Window.console Read only
Window.content and Window._content Read only
Window.controllers Read only
Window.customElements Read only
CustomElementRegistry object, which can be used to register new custom elements and get information about previously registered custom elements.Window.crypto Read only
Window.defaultStatus Obsolete since Gecko 23
Window.devicePixelRatio Read only
Window.dialogArguments Read only
window.showModalDialog() was called. This is an nsIArray.Window.directories
window.personalbar
Window.document Read only
Window.DOMMatrix Read only
DOMMatrix object, which represents 4x4 matrices, suitable for 2D and 3D operations.Window.DOMMatrixReadOnly Read only
DOMMatrixReadOnly object, which represents 4x4 matrices, suitable for 2D and 3D operations.Window.DOMPoint Read only
DOMPoint object, which represents a 2D or 3D point in a coordinate system.Window.DOMPointReadOnly Read only
DOMPointReadOnly object, which represents a 2D or 3D point in a coordinate system.Window.DOMQuad Read only
DOMQuad object, which provides represents a quadrilaterial object, that is one having four corners and four sides.Window.DOMRect Read only
DOMRect object, which represents a rectangle.Window.DOMRectReadOnly Read only
DOMRectReadOnly object, which represents a rectangle.Window.event Read only
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
Window.frames Read only
Window.fullScreen Window.globalStorage Obsolete since Gecko 13
Window.localStorage instead.Window.history Read only
Window.innerHeight Read only
Window.innerWidth Read only
Window.isSecureContext Read only
Window.length Read only
window.frames.Window.locationWindow.locationbar Read only
Window.localStorage Read only Window.menubar Read only
Window.messageManager Window.mozAnimationStartTime Read only
Animation.startTime instead.Window.mozInnerScreenX Read only mozScreenPixelsPerCSSPixel in nsIDOMWindowUtils for a conversion factor to adapt to screen pixels if needed.Window.mozInnerScreenY Read only mozScreenPixelsPerCSSPixel for a conversion factor to adapt to screen pixels if needed.Window.mozPaintCount Read only Window.nameWindow.navigator Read only
Window.openerWindow.orientation Read only
Window.outerHeight Read only
Window.outerWidth Read only
Window.pageXOffset Read only
window.scrollX.Window.pageYOffset Read only
window.scrollY
Window.parent Read only
Window.performance Read only
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
Window.pkcs11 Obsolete since Gecko 29
Window.returnValue window.showModalDialog() to display the window as a modal dialog.Window.screen Read only
Window.screenX and Window.screenLeft Read only
Window.screenY and Window.screenTop Read only
Window.scrollbars Read only
Window.scrollMaxX Read only
Window.scrollMaxY Read only
Window.scrollX Read only
Window.scrollY Read only
Window.self Read only
Window.sessionStorageWindow.sidebar Read only
Window.speechSynthesis Read only
SpeechSynthesis object, which is the entry point into using Web Speech API speech synthesis functionality.Window.statusWindow.statusbar Read only
Window.toolbar Read only
Window.top Read only
Window.visualViewport Read only
VisualViewport object which represents the visual viewport for a given window.Window.window Read only
window[0], window[1], etc.window object in the frames. See Window.frames for more details.WindowOrWorkerGlobalScope.caches Read only
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
IDBFactory object.WindowOrWorkerGlobalScope.isSecureContext Read only
true) or not (false).WindowOrWorkerGlobalScope.origin Read only
This interface inherits methods from the EventTarget interface and implements methods from WindowOrWorkerGlobalScope and EventTarget.
Window.alert()Window.back()
window.history.back().Window.blur()Window.cancelAnimationFrame()
Window.requestAnimationFrame.Window.cancelIdleCallback()
Window.requestIdleCallback.Window.captureEvents()
Window.clearImmediate()setImmediate.Window.close()Window.confirm()Window.disableExternalCapture() Obsolete since Gecko 24
Window.dispatchEvent()Window.dump()
Window.enableExternalCapture() Obsolete since Gecko 24
Window.find()Window.focus()Window.forward()
window.history.forward().Window.getAttention()
Window.getAttentionWithCycleCount()Window.getComputedStyle()Window.getDefaultComputedStyle()
Window.getSelection()Window.home()
Window.matchMedia() MediaQueryList object representing the specified media query string.Window.maximize()Window.minimize() (top-level XUL windows only)Window.moveBy()Window.moveTo()Window.open()Window.openDialog()
Window.postMessage() Window.print()Window.prompt()Window.releaseEvents()
Window.requestAnimationFrame() Window.requestIdleCallback()
Window.resizeBy()Window.resizeTo()Window.restore()
Window.routeEvent() Obsolete since Gecko 24
Window.scroll()Window.scrollBy()Window.scrollByLines()
Window.scrollByPages()
Window.scrollTo()Window.setCursor() (top-level XUL windows only)Window.setImmediate()Window.setResizable()
Window.sizeToContent()
Window.stop()Window.updateCommands()
EventTarget.addEventListener()WindowOrWorkerGlobalScope.atob()WindowOrWorkerGlobalScope.btoa()WindowOrWorkerGlobalScope.clearInterval()WindowOrWorkerGlobalScope.setInterval().WindowOrWorkerGlobalScope.clearTimeout()WindowOrWorkerGlobalScope.setTimeout().WindowOrWorkerGlobalScope.createImageBitmap()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()EventTarget.removeEventListenerWindowOrWorkerGlobalScope.setInterval()WindowOrWorkerGlobalScope.setTimeout()Window.showModalDialog()
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.
Note: Starting in Gecko 9.0, you can now use the syntax if ("onabort" in window) to determine whether or not a given event handler property exists. This is because event handler interfaces have been updated to be proper web IDL interfaces. See DOM event handlers for details.
Window.onappinstalledappinstalled event.Window.onbeforeinstallpromptWindow.ondevicelightWindow.ondevicemotion Window.ondeviceorientation Window.ondeviceorientationabsolute Chrome onlyWindow.ondeviceproximityWindow.ongamepadconnectedgamepadconnected event fires).Window.ongamepaddisconnectedgamepaddisconnected event fires).Window.onmozbeforepaint MozBeforePaint event, which is sent before repainting the window if the event has been requested by a call to the Window.mozRequestAnimationFrame() method.Window.onpaintWindow.onrejectionhandled
Promise rejection events.Window.onuserproximityWindow.onvrdisplayconnectvrdisplayconnected event fires).Window.onvrdisplaydisconnectvrdisplaydisconnected event fires).Window.onvrdisplayactivatevrdisplayactivate event fires), for example if an HMD has been moved to bring it out of standby, or woken up by being put on.Window.onvrdisplaydeactivatevrdisplaydeactivate event fires), for example if an HMD has gone into standby or sleep mode due to a period of inactivity.Window.onvrdisplayblurvrdisplayblur event fires) — for example, while the user is interacting with a system menu or browser, to prevent tracking or loss of experience.Window.onvrdisplayfocusvrdisplayfocus event fires).Window.onvrdisplaypresentchangevrdisplaypresentchange event fires).GlobalEventHandlers.onabortWindowEventHandlers.onafterprintafterprint event.WindowEventHandlers.onbeforeprintbeforeprint event.WindowEventHandlers.onbeforeunloadGlobalEventHandlers.onblurGlobalEventHandlers.onchangeGlobalEventHandlers.onclickGlobalEventHandlers.ondblclickGlobalEventHandlers.oncloseGlobalEventHandlers.oncontextmenuGlobalEventHandlers.onerrorerror event.GlobalEventHandlers.onfocusfocus events.WindowEventHandlers.onhashchange hashchange events on the window; called when the part of the URL after the hash mark ("#") changes.GlobalEventHandlers.oninputGlobalEventHandlers.onkeydownkeydown event.GlobalEventHandlers.onkeypresskeypress event.GlobalEventHandlers.onkeyupkeyup event.WindowEventHandlers.onlanguagechangelanguagechange events on the window.GlobalEventHandlers.onloadWindowEventHandlers.onmessageEventHandler representing the code to be called when the message event is raised.GlobalEventHandlers.onmousedownGlobalEventHandlers.onmousemoveGlobalEventHandlers.onmouseoutGlobalEventHandlers.onmouseoverGlobalEventHandlers.onmouseupWindowEventHandlers.onofflineoffline event.WindowEventHandlers.ononlineonline event.WindowEventHandlers.onpagehidepagehide event.WindowEventHandlers.onpageshowpageshow event.WindowEventHandlers.onpopstate GlobalEventHandlers.onresetGlobalEventHandlers.onresizeGlobalEventHandlers.onscrollGlobalEventHandlers.onwheelGlobalEventHandlers.onselectGlobalEventHandlers.onselectionchangeEventHandler representing the code to be called when the selectionchange event is raised.WindowEventHandlers.onstoragestorage eventGlobalEventHandlers.onsubmitWindowEventHandlers.onunhandledrejection
Promise rejection events.WindowEventHandlers.onunloadSee also the DOM Interfaces.
DOMParserDOMParser can parse XML or HTML source stored in a string into a DOM Document. DOMParser is specified in DOM Parsing and Serialization.Window.GeckoActiveXObjectImageHTMLImageElement.OptionHTMLOptionElement
Window.QueryInterfaceWindow.StaticRange Read only
StaticRange() constructor which creates a StaticRange object.WorkerWindow.XMLSerializerWindow.XPCNativeWrapperWindow.XPCSafeJSObjectWrapperSee DOM Reference
| Desktop | ||||||
|---|---|---|---|---|---|---|
| Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | |
| Basic support | 1 | 12 | 1 | Yes | Yes | Yes |
alert |
Yes
|
Yes | Yes | Yes | Yes
|
Yes |
blur |
Yes | Yes | Yes | Yes | Yes | Yes |
confirm |
Yes
|
Yes | Yes | Yes | Yes
|
Yes |
cancelAnimationFrame |
Yes | Yes | 23
|
10 | 15 | 6.1
|
cancelIdleCallback
|
47 | No | 55
|
No | Yes | No |
clearImmediate
|
No | ? | No | Yes | No | No |
close |
Yes | Yes | Yes
|
Yes | Yes | Yes |
focus |
Yes | Yes | Yes | Yes | Yes | Yes |
ondevicelight |
No | Yes | 22 — 60 | No | No | No |
convertPointFromNodeToPage
|
Yes | Yes | 6 | ? | ? | Yes
|
convertPointFromPageToNode
|
50
|
Yes | 6
|
? | ? | Yes
|
ondeviceorientationabsolute
|
50 | ? | No | ? | ? | ? |
ondeviceproximity |
No | ? | ? — 60 | No | No | No |
ongamepadconnected |
35
|
Yes | 29 | No | 22
|
10.1 |
ongamepaddisconnected |
35
|
Yes | 29 | No | 22
|
10.1 |
onpaint
|
No | ? | No | ? | ? | ? |
onuserproximity |
No | ? | Yes | No | No | No |
onvrdisplayactivate
|
No | No | 55 | No | No | No |
onvrdisplayblur
|
No | No | No | No | No | No |
onvrdisplayconnect
|
No
|
? | 63
|
No | No | No |
onvrdisplaydeactivate
|
No | No | 55 | No | No | No |
onvrdisplaydisconnect
|
No
|
? | 63
|
No | No | No |
onvrdisplayfocus
|
No | No | No | No | No | No |
onvrdisplaypresentchange
|
65
|
? | 63
|
No | No | No |
crypto |
37 | 12 | 34 | 11
|
24 | 6.1 |
customElements |
54 | No | 63
|
No | 41 | 10.1 |
devicePixelRatio |
Yes | Yes | 49 | 11 | 41 | 9.1 |
dialogArguments
|
? | ? | ? | ? | ? | ? |
document |
Yes | Yes | Yes | Yes | Yes | Yes |
event |
Yes | Yes | 64 | Yes | Yes | Yes |
frameElement |
Yes | Yes | 1 | Yes | Yes | Yes |
frames |
Yes | Yes | Yes | Yes | Yes | Yes |
fullScreen
|
No | ? | 3 | No | ? | ? |
getAttention
|
No | No | No | No | No | No |
getAttentionWithCycleCount
|
No | No | No | No | No | No |
getComputedStyle |
Yes | Yes | Yes
|
9 | Yes | Yes |
getDefaultComputedStyle
|
No | No | 19 | No | No | No |
getSelection |
Yes | Yes | Yes | 9 | Yes | Yes |
globalStorage
|
No | ? | ? — 13 | ? | ? | ? |
history |
Yes | ? | Yes | ? | ? | ? |
home
|
No | ? | 1 | No | Yes | No |
innerHeight |
1 | Yes | 1
|
9 | 9 | 3 |
innerWidth |
1 | Yes | 1
|
9 | 9 | 3 |
isSecureContext |
Yes | Yes | 49 | ? | ? | ? |
length |
Yes | ? | Yes | ? | ? | ? |
localStorage |
4 | Yes | 3.5 | 8 | 10.5 | 4 |
location |
Yes | Yes | Yes
|
Yes | Yes | Yes |
locationbar |
Yes | ? | ? | ? | ? | ? |
matchMedia |
9 | Yes | 6 | 10 | 12.1 | 5.1 |
maximize
|
No | ? | No | ? | ? | ? |
menubar |
Yes | ? | Yes | ? | ? | ? |
minimize
|
No | ? | No | ? | ? | ? |
moveBy |
Yes | ? | Yes | ? | ? | ? |
moveTo |
Yes | ? | Yes | ? | ? | ? |
mozAnimationStartTime
|
No | No | No | No | No | No |
mozInnerScreenX
|
No | No | Yes | No | No | No |
mozInnerScreenY
|
No | No | Yes | No | No | No |
mozPaintCount
|
No | No | No | No | No | No |
name |
Yes | ? | Yes | ? | ? | ? |
navigator |
Yes | ? | Yes | ? | ? | ? |
onappinstalled |
Yes | ? | 49
|
? | ? | ? |
onbeforeinstallprompt |
? | ? | ? | ? | ? | ? |
ondevicemotion |
? | ? | ? | ? | ? | ? |
ondeviceorientation |
? | ? | ? | ? | ? | ? |
open |
Yes | Yes | Yes | Yes | ? | ? |
openDialog
|
No | ? | No | ? | ? | ? |
opener |
Yes | ? | Yes | ? | ? | ? |
orientation
|
No | ? | No | ? | ? | ? |
outerHeight |
1 | Yes | 1 | 9 | 9 | 3 |
outerWidth |
1 | Yes | 1 | 9 | 9 | 3 |
pageXOffset |
Yes | Yes | Yes | 9 | Yes | Yes |
pageYOffset |
Yes | Yes | Yes | 9 | Yes | Yes |
parent |
Yes | ? | Yes | ? | ? | ? |
performance |
6 | Yes | 7 | 9 | 15 | 8 |
personalbar |
Yes | ? | Yes | ? | ? | ? |
pkcs11
|
No | ? | ? — 29 | ? | ? | ? |
postMessage |
1 | Yes | 8
|
10
|
9.5 | 4 |
print |
Yes
|
? | Yes | ? | ? | ? |
prompt |
Yes
|
? | Yes | Yes
|
? | ? |
releaseEvents
|
Yes | ? | Yes | ? | ? | ? |
requestAnimationFrame |
24
|
Yes | 23
|
10 | 15
|
6.1
|
requestFileSystem
|
13
|
Yes | No | No | No | No |
requestIdleCallback
|
47 | No | 55
|
No | 34 | No |
resizeBy |
Yes | ? | Yes
|
? | ? | ? |
resizeTo |
Yes | ? | Yes
|
? | ? | ? |
restore |
No | ? | No | ? | ? | ? |
returnValue |
No | ? | No | ? | ? | ? |
routeEvent
|
No | ? | No | ? | ? | ? |
screen |
Yes | ? | Yes | ? | ? | ? |
screenX |
Yes | Yes | Yes
|
Yes | Yes | Yes |
screenY |
Yes | Yes | Yes
|
Yes | Yes | Yes |
scroll |
Yes | Yes | Yes | ? | ? | Yes |
scrollbars |
Yes | ? | Yes | ? | ? | Yes |
scrollBy |
Yes | Partial
|
Yes | 11
|
? | Yes |
scrollByLines
|
No | ? | Yes | ? | ? | No |
scrollByPages
|
No | ? | Yes | ? | ? | No |
scrollMaxX
|
No | ? | Yes | ? | ? | No |
scrollMaxY
|
No | ? | Yes | ? | ? | ? |
scrollTo |
Yes | Yes | Yes | Yes | Yes | Yes |
scrollX |
Yes
|
Yes
|
Yes
|
No
|
Yes
|
Yes
|
scrollY |
Yes
|
Yes
|
Yes
|
No
|
Yes
|
Yes
|
self |
Yes | Yes | Yes | Yes | Yes | Yes |
sessionStorage |
5 | Yes | 2 | 8 | 10.5 | 4 |
setCursor
|
No | ? | No | ? | ? | ? |
setImmediate
|
No | Yes | No | 10 | No | No |
setResizable
|
No | ? | Yes | ? | ? | ? |
showModalDialog
|
? — 43 | No | 3 — 56 | 4 | No | 5.1
|
sidebar
|
No | ? | Yes | ? | ? | ? |
sizeToContent
|
No | ? | Yes
|
? | ? | ? |
speechSynthesis |
33 | Yes | 49 | No | ? | 7 |
status |
Yes | ? | Yes | ? | ? | ? |
statusbar |
Yes | ? | Yes | ? | ? | ? |
stop |
Yes | ? | Yes | No | ? | ? |
toolbar |
Yes | ? | Yes | ? | ? | ? |
top |
Yes | Yes | Yes
|
Yes | Yes | Yes |
updateCommands
|
No | ? | Yes | ? | ? | ? |
visualViewport
|
60 | ? | 63
|
? | 47 | ? |
window |
Yes | ? | Yes | ? | ? | ? |
| Mobile | |||||||
|---|---|---|---|---|---|---|---|
| Android webview | Chrome for Android | Edge Mobile | Firefox for Android | Opera for Android | iOS Safari | Samsung Internet | |
| Basic support | Yes | 18 | 12 | 4 | Yes | Yes | Yes |
alert |
Yes
|
Yes
|
Yes | Yes | Yes
|
Yes | Yes |
blur |
Yes | Yes | Yes | Yes | Yes | Yes | Yes |
confirm |
Yes
|
Yes
|
Yes | Yes | Yes
|
Yes | Yes |
cancelAnimationFrame |
Yes | Yes | Yes | 23
|
33 | 7.1 | ? |
cancelIdleCallback
|
47 | 47 | ? | 55
|
? | No | ? |
clearImmediate
|
No | ? | ? | No | No | No | ? |
close |
Yes | Yes | Yes | Yes
|
Yes | Yes | ? |
focus |
Yes | Yes | Yes | Yes | Yes | Yes | Yes |
ondevicelight |
No | No | ? | 15 | No | No | ? |
convertPointFromNodeToPage
|
Yes | Yes | Yes | 6 | No | Yes | ? |
convertPointFromPageToNode
|
50
|
50
|
Yes | 6
|
No | Yes | ? |
ondeviceorientationabsolute
|
50 | 50 | ? | No | ? | ? | ? |
ondeviceproximity |
No | No | ? | 15 | No | No | ? |
ongamepadconnected |
? | ? | Yes | 32 | No | No | Yes |
ongamepaddisconnected |
? | ? | Yes | 32 | No | No | Yes |
onpaint
|
Yes | No | ? | No | ? | ? | ? |
onuserproximity |
No | No | ? | 15 — 60 | No | No | ? |
onvrdisplayactivate
|
No | No | No | 55 | No | No | No |
onvrdisplayblur
|
No | No | No | No | No | No | No |
onvrdisplayconnect
|
? | Yes
|
? | 55 | No | No | Yes
|
onvrdisplaydeactivate
|
No | No | No | 55 | No | No | No |
onvrdisplaydisconnect
|
? | 56
|
? | 55 | No | No | Yes
|
onvrdisplayfocus
|
No | No | No | No | No | No | No |
onvrdisplaypresentchange
|
? | 56
|
? | 55 | No | No | Yes
|
crypto |
37 | 37 | 12 | 34 | 24 | 6.1 | Yes |
customElements |
54 | 54 | No | 63
|
41 | 10.1 | ? |
devicePixelRatio |
Yes | Yes | Yes | ? | Yes | 9.3 | ? |
dialogArguments
|
? | ? | ? | ? | ? | ? | ? |
document |
Yes | Yes | Yes | Yes | Yes | Yes | Yes |
event |
? | Yes | Yes | 64 | Yes | Yes | ? |
frameElement |
? | ? | Yes | Yes | ? | ? | ? |
frames |
Yes | Yes | Yes | Yes | Yes | Yes | Yes |
fullScreen
|
? | No | ? | ? | ? | ? | ? |
getAttention
|
No | No | No | No | No | No | ? |
getAttentionWithCycleCount
|
No | No | No | No | No | No | ? |
getComputedStyle |
Yes | Yes | Yes | Yes
|
Yes | Yes | ? |
getDefaultComputedStyle
|
No | No | No | 19 | No | No | ? |
getSelection |
? | ? | Yes | 55
|
37 | 5.1
|
? |
globalStorage
|
No | No | ? | No | ? | ? | ? |
history |
Yes | Yes | ? | Yes | ? | ? | ? |
home
|
No | No | ? | ? | ? | No | ? |
innerHeight |
Yes | Yes | Yes | 4
|
9 | 3 | ? |
innerWidth |
Yes | Yes | Yes | 4
|
9 | 3 | ? |
isSecureContext |
Yes | Yes | Yes | 49 | ? | ? | ? |
length |
Yes | Yes | ? | Yes | ? | ? | ? |
localStorage |
Yes | Yes | Yes | Yes | 11 | 3.2 | ? |
location |
Yes | Yes | Yes | Yes
|
Yes | Yes | ? |
locationbar |
Yes | Yes | ? | ? | ? | ? | ? |
matchMedia |
? | ? | Yes | 6 | 12.1 | 5 | ? |
maximize
|
No | No | ? | No | ? | ? | ? |
menubar |
Yes | Yes | ? | Yes | ? | ? | ? |
minimize
|
No | No | ? | No | ? | ? | ? |
moveBy |
Yes | Yes | ? | Yes | ? | ? | ? |
moveTo |
Yes | Yes | ? | Yes | ? | ? | ? |
mozAnimationStartTime
|
No | No | No | No | No | No | No |
mozInnerScreenX
|
No | No | No | Yes | No | No | No |
mozInnerScreenY
|
No | No | No | Yes | No | No | No |
mozPaintCount
|
No | No | No | No | No | No | No |
name |
Yes | Yes | ? | Yes | ? | ? | ? |
navigator |
Yes | Yes | ? | Yes | ? | ? | ? |
onappinstalled |
? | Yes | ? | 49
|
? | ? | ? |
onbeforeinstallprompt |
? | ? | ? | ? | ? | ? | ? |
ondevicemotion |
? | ? | ? | ? | ? | ? | ? |
ondeviceorientation |
? | ? | ? | ? | ? | ? | ? |
open |
Yes | Yes | ? | Yes | ? | ? | ? |
openDialog
|
No | No | ? | No | ? | ? | ? |
opener |
Yes | Yes | ? | Yes | ? | ? | ? |
orientation
|
No | No | ? | No | ? | ? | ? |
outerHeight |
Yes | Yes | Yes | 4 | 9 | 3 | ? |
outerWidth |
Yes | Yes | Yes | 4 | 9 | 3 | ? |
pageXOffset |
? | Yes | Yes | Yes | ? | ? | ? |
pageYOffset |
? | Yes | Yes | Yes | ? | ? | ? |
parent |
Yes | Yes | ? | Yes | ? | ? | ? |
performance |
Yes | Yes | Yes | 7 | 15 | 9 | ? |
personalbar |
Yes | Yes | ? | Yes | ? | ? | ? |
pkcs11
|
No | No | ? | ? — 29 | ? | ? | ? |
postMessage |
Yes | Yes | Yes | 8
|
Yes | Yes
|
? |
print |
Yes | Yes | ? | Yes | ? | ? | ? |
prompt |
Yes | Yes | ? | Yes | ? | ? | ? |
releaseEvents
|
Yes | Yes | ? | Yes | ? | ? | ? |
requestAnimationFrame |
Yes | 25
|
Yes | 23
|
15 | 7.1
|
? |
requestFileSystem
|
? | Yes
|
Yes | No | No | No | ? |
requestIdleCallback
|
47 | 47 | No | 55
|
? | No | ? |
resizeBy |
Yes | Yes | ? | Yes | ? | ? | ? |
resizeTo |
Yes | Yes | ? | Yes | ? | ? | ? |
restore |
No | No | ? | No | ? | ? | ? |
returnValue |
No | No | ? | No | ? | ? | ? |
routeEvent
|
No | No | ? | No | ? | ? | ? |
screen |
Yes | Yes | ? | Yes | ? | ? | ? |
screenX |
Yes | Yes | Yes | Yes
|
Yes | Yes | ? |
screenY |
Yes | Yes | Yes | Yes
|
Yes | Yes | ? |
scroll |
Yes | Yes | ? | Yes | ? | Yes | ? |
scrollbars |
Yes | Yes | ? | Yes | ? | Yes | ? |
scrollBy |
Yes | Yes | ? | Yes | ? | Yes | ? |
scrollByLines
|
No | No | ? | Yes | ? | No | ? |
scrollByPages
|
No | No | ? | Yes | ? | No | ? |
scrollMaxX
|
No | No | ? | Yes | ? | No | ? |
scrollMaxY
|
No | No | ? | Yes | ? | ? | ? |
scrollTo |
Yes | Yes | Yes | Yes | ? | Yes | Yes |
scrollX |
Yes
|
Yes
|
Yes
|
Yes
|
?
|
?
|
?
|
scrollY |
Yes
|
Yes
|
Yes
|
Yes
|
?
|
Yes
|
?
|
self |
Yes | Yes | Yes | Yes | Yes | Yes | ? |
sessionStorage |
Yes | Yes | Yes | Yes | 11 | 3.2 | ? |
setCursor
|
No | No | ? | No | ? | ? | ? |
setImmediate
|
No | No | Yes | No | No | No | ? |
setResizable
|
No | No | ? | Yes | ? | ? | ? |
showModalDialog
|
No | No | No | No | No | No | No |
sidebar
|
No | No | ? | Yes | ? | ? | ? |
sizeToContent
|
No | No | ? | Yes
|
? | ? | ? |
speechSynthesis |
? | Yes | Yes | No | No | 7.1 | ? |
status |
Yes | Yes | ? | Yes | ? | ? | ? |
statusbar |
Yes | Yes | ? | Yes | ? | ? | ? |
stop |
Yes | Yes | ? | Yes | ? | ? | ? |
toolbar |
Yes | Yes | ? | Yes | ? | ? | ? |
top |
? | ? | Yes | ? | ? | ? | ? |
updateCommands
|
No | No | ? | Yes | ? | ? | ? |
visualViewport
|
60 | 60 | ? | 63
|
47 | ? | ? |
window |
Yes | Yes | ? | Yes | ? | ? | ? |
© 2005–2018 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/Window