Readonly
cachesAvailable only in secure contexts.
Readonly
clientReadonly
closedThe Window.closed
read-only property indicates whether the referenced window is closed or not.
Readonly
cookieThe cookieStore
read-only property of the Window interface returns a reference to the CookieStore object for the current document context.
Readonly
crossReadonly
cryptoReadonly
customThe customElements
read-only property of the Window interface returns a reference to the CustomElementRegistry object, which can be used to register new custom elements and get information about previously registered custom elements.
Readonly
deviceThe devicePixelRatio
of Window interface returns the ratio of the resolution in physical pixels to the resolution in CSS pixels for the current display device.
Readonly
documentwindow.document
returns a reference to the document contained in the window.
Readonly
eventThe read-only Window property event
returns the Event which is currently being handled by the site's code.
Readonly
externalThe external
property of the Window API returns an instance of the External
interface, which was intended to contain functions related to adding external search providers to the browser.
Readonly
frameThe Window.frameElement
property returns the element (such as iframe or object) in which the window is embedded.
Readonly
framesReturns the window itself, which is an array-like object, listing the direct sub-frames of the current window.
Readonly
historyThe Window.history
read-only property returns a reference to the History object, which provides an interface for manipulating the browser session history (pages visited in the tab or frame that the current page is loaded in).
Readonly
indexedReadonly
innerThe read-only innerHeight
property of the including the height of the horizontal scroll bar, if present.
Readonly
innerThe read-only Window property innerWidth
returns the interior width of the window in pixels (that is, the width of the window's layout viewport).
Readonly
isReadonly
lengthReturns the number of frames (either frame or A number.
Readonly
localReadonly
locationbarReturns the locationbar
object.
Readonly
menubarReturns the menubar
object.
The Window.name
property gets/sets the name of the window's browsing context.
Readonly
navigatorThe Window.navigator
read-only property returns a reference to the Navigator object, which has methods and properties about the application running the script.
Available only in secure contexts.
Available only in secure contexts.
Available only in secure contexts.
Available only in secure contexts.
Optional
ontouchcancelOptional
ontouchendOptional
ontouchmoveOptional
ontouchstartThe Window interface's opener
property returns a reference to the window that opened the window, either with Window.open, or by navigating a link with a target
attribute.
Readonly
orientationReturns the orientation in degrees (in 90-degree increments) of the viewport relative to the device's natural orientation.
Readonly
originReadonly
originThe originAgentCluster
read-only property of the Window interface returns true
if this window belongs to an origin-keyed agent cluster: this means that the operating system has provided dedicated resources (for example an operating system process) to this window's origin that are not shared with windows from other origins.
Readonly
outerThe Window.outerHeight
read-only property returns the height in pixels of the whole browser window, including any sidebar, window chrome, and window-resizing borders/handles.
Readonly
outerWindow.outerWidth
read-only property returns the width of the outside of the browser window.
Readonly
pageReadonly
pageReadonly
parentThe Window.parent
property is a reference to the parent of the current window or subframe.
Readonly
performanceReadonly
personalbarReturns the personalbar
object.
Readonly
screenThe Window property screen
returns a reference to the screen object associated with the window.
Readonly
screenThe Window.screenLeft
read-only property returns the horizontal distance, in CSS pixels, from the left border of the user's browser viewport to the left side of the screen.
Readonly
screenThe Window.screenTop
read-only property returns the vertical distance, in CSS pixels, from the top border of the user's browser viewport to the top side of the screen.
Readonly
screenThe Window.screenX
read-only property returns the horizontal distance, in CSS pixels, of the left border of the user's browser viewport to the left side of the screen.
Readonly
screenThe Window.screenY
read-only property returns the vertical distance, in CSS pixels, of the top border of the user's browser viewport to the top edge of the screen.
Readonly
scrollbarsReturns the scrollbars
object.
Readonly
scrollThe read-only scrollX
property of the Window interface returns the number of pixels by which the document is currently scrolled horizontally.
Readonly
scrollThe read-only scrollY
property of the Window interface returns the number of pixels by which the document is currently scrolled vertically.
Readonly
selfThe Window.self
read-only property returns the window itself, as a WindowProxy.
Readonly
sessionReadonly
speechThe speechSynthesis
read-only property of the Window object returns a SpeechSynthesis object, which is the entry point into using Web Speech API speech synthesis functionality.
The status
property of the bar at the bottom of the browser window.
Readonly
statusbarReturns the statusbar
object.
Readonly
toolbarReturns the toolbar
object.
Readonly
topReturns a reference to the topmost window in the window hierarchy.
Readonly
visualThe visualViewport
read-only property of the Window interface returns a VisualViewport object representing the visual viewport for a given window, or null
if current document is not fully active.
Readonly
windowThe window
property of a Window object points to the window object itself.
Add a listener for WindowAppReadyEvent.
Add a listener for WindowRegisterWalletEvent.
window.alert()
instructs the browser to display a dialog with an optional message, and to wait until the user dismisses the dialog.
Optional
message: anyThe window.cancelIdleCallback()
method cancels a callback previously scheduled with window.requestIdleCallback().
The Window.close()
method closes the current window, or the window on which it was called.
window.confirm()
instructs the browser to display a dialog with an optional message, and to wait until the user either confirms or cancels the dialog.
Optional
message: stringOptional
options: ImageBitmapOptionsOptional
options: ImageBitmapOptionsMakes a request to bring the window to the front.
The Window.getComputedStyle()
method returns an object containing the values of all CSS properties of an element, after applying active stylesheets and resolving any basic computation those values may contain.
Optional
pseudoElt: null | stringThe getSelection()
method of the Window interface returns the Selection object associated with the window's document, representing the range of text selected by the user or the current position of the caret.
The Window interface's matchMedia()
method returns a new MediaQueryList object that can then be used to determine if the document matches the media query string, as well as to monitor the document to detect when it matches (or stops matching) that media query.
The moveBy()
method of the Window interface moves the current window by a specified amount.
The moveTo()
method of the Window interface moves the current window to the specified coordinates.
The open()
method of the Window
interface loads a specified resource into a new or existing browsing context (that is, a tab, a window, or an iframe) under a specified name.
Optional
url: string | URLOptional
target: stringOptional
features: stringThe window.postMessage()
method safely enables cross-origin communication between Window objects; e.g., between a page and a pop-up that it spawned, or between a page and an iframe embedded within it.
Optional
transfer: Transferable[]Optional
options: WindowPostMessageOptionsOpens the print dialog to print the current document.
window.prompt()
instructs the browser to display a dialog with an optional message prompting the user to input some text, and to wait until the user either submits the text or cancels the dialog.
Optional
message: stringOptional
_default: stringThe removeEventListener()
method of the EventTarget interface removes an event listener previously registered with EventTarget.addEventListener() from the target.
The removeEventListener()
method of the EventTarget interface removes an event listener previously registered with EventTarget.addEventListener() from the target.
Optional
options: boolean | EventListenerOptionsThe window.requestIdleCallback()
method queues a function to be called during a browser's idle periods.
Optional
options: IdleRequestOptionsThe Window.resizeBy()
method resizes the current window by a specified amount.
The Window.resizeTo()
method dynamically resizes the window.
The Window.scroll()
method scrolls the window to a particular place in the document.
Optional
options: ScrollToOptionsThe Window.scrollBy()
method scrolls the document in the window by the given amount.
Optional
options: ScrollToOptionsWindow.scrollTo()
scrolls to a particular set of coordinates in the document.
Optional
options: ScrollToOptionsOptional
timeout: numberOptional
timeout: numberThe window.stop()
stops further resource loading in the current browsing context, equivalent to the stop button in the browser.
Global
window
type for dispatching and listening for WindowAppReadyEvent and WindowRegisterWalletEvent.