repo_id
stringlengths
22
103
file_path
stringlengths
41
147
content
stringlengths
181
193k
__index_level_0__
int64
0
0
data/mdn-content/files/en-us/web/api/window
data/mdn-content/files/en-us/web/api/window/dump/index.md
--- title: "Window: dump() method" short-title: dump() slug: Web/API/Window/dump page-type: web-api-instance-method status: - non-standard browser-compat: api.Window.dump --- {{ ApiRef() }} {{Non-standard_header}} The **`Window.dump()`** method logs messages to the browser's standard output (`stdout`). If the brows...
0
data/mdn-content/files/en-us/web/api/window
data/mdn-content/files/en-us/web/api/window/external/index.md
--- title: "Window: external property" short-title: external slug: Web/API/Window/external page-type: web-api-instance-property status: - deprecated browser-compat: api.Window.external --- {{APIRef}} {{deprecated_header}} The `external` property of the {{domxref("Window")}} API returns an instance of the `External`...
0
data/mdn-content/files/en-us/web/api/window
data/mdn-content/files/en-us/web/api/window/resizeby/index.md
--- title: "Window: resizeBy() method" short-title: resizeBy() slug: Web/API/Window/resizeBy page-type: web-api-instance-method browser-compat: api.Window.resizeBy --- {{APIRef}} The **`Window.resizeBy()`** method resizes the current window by a specified amount. ## Syntax ```js-nolint resizeBy(xDelta, yDelta) ``` ...
0
data/mdn-content/files/en-us/web/api/window
data/mdn-content/files/en-us/web/api/window/credentialless/index.md
--- title: "Window: credentialless property" short-title: credentialless slug: Web/API/Window/credentialless page-type: web-api-instance-property status: - experimental browser-compat: api.Window.credentialless --- {{APIRef}}{{SeeCompatTable}} The **`window.credentialless`** read-only property returns a boolean tha...
0
data/mdn-content/files/en-us/web/api/window
data/mdn-content/files/en-us/web/api/window/copy_event/index.md
--- title: "Window: copy event" short-title: copy slug: Web/API/Window/copy_event page-type: web-api-event browser-compat: api.Element.copy_event --- {{APIRef}} The **`copy`** event fires when the user initiates a copy action through the browser's user interface. The original target for this event is the {{domxref("...
0
data/mdn-content/files/en-us/web/api/window
data/mdn-content/files/en-us/web/api/window/document/index.md
--- title: "Window: document property" short-title: document slug: Web/API/Window/document page-type: web-api-instance-property browser-compat: api.Window.document --- {{APIRef}} **`window.document`** returns a reference to the [document](/en-US/docs/Web/API/Document) contained in the window. ## Value A [document](...
0
data/mdn-content/files/en-us/web/api/window
data/mdn-content/files/en-us/web/api/window/online_event/index.md
--- title: "Window: online event" short-title: online slug: Web/API/Window/online_event page-type: web-api-event browser-compat: api.Window.online_event --- {{APIRef}} The **`online`** event of the {{domxref("Window")}} interface is fired when the browser has gained access to the network and the value of {{domxref("N...
0
data/mdn-content/files/en-us/web/api/window
data/mdn-content/files/en-us/web/api/window/beforeprint_event/index.md
--- title: "Window: beforeprint event" short-title: beforeprint slug: Web/API/Window/beforeprint_event page-type: web-api-event browser-compat: api.Window.beforeprint_event --- {{APIRef}} The **`beforeprint`** event is fired when the associated document is about to be printed or previewed for printing. The {{domxref...
0
data/mdn-content/files/en-us/web/api/window
data/mdn-content/files/en-us/web/api/window/frames/index.md
--- title: "Window: frames property" short-title: frames slug: Web/API/Window/frames page-type: web-api-instance-property browser-compat: api.Window.frames --- {{APIRef("DOM")}} Returns the window itself, which is an array-like object, listing the direct sub-frames of the current window. ## Value A list of frame ob...
0
data/mdn-content/files/en-us/web/api/window
data/mdn-content/files/en-us/web/api/window/stop/index.md
--- title: "Window: stop() method" short-title: stop() slug: Web/API/Window/stop page-type: web-api-instance-method browser-compat: api.Window.stop --- {{APIRef}} The **`window.stop()`** stops further resource loading in the current browsing context, equivalent to the stop button in the browser. Because of how scrip...
0
data/mdn-content/files/en-us/web/api/window
data/mdn-content/files/en-us/web/api/window/languagechange_event/index.md
--- title: "Window: languagechange event" short-title: languagechange slug: Web/API/Window/languagechange_event page-type: web-api-event browser-compat: api.Window.languagechange_event --- {{APIRef}} The **`languagechange`** event is fired at the global scope object when the user's preferred language changes. ## Syn...
0
data/mdn-content/files/en-us/web/api/window
data/mdn-content/files/en-us/web/api/window/localstorage/index.md
--- title: "Window: localStorage property" short-title: localStorage slug: Web/API/Window/localStorage page-type: web-api-instance-property browser-compat: api.Window.localStorage --- {{APIRef("Web Storage API")}} The **`localStorage`** read-only property of the {{domxref("window")}} interface allows you to access a ...
0
data/mdn-content/files/en-us/web/api/window
data/mdn-content/files/en-us/web/api/window/moveto/index.md
--- title: "Window: moveTo() method" short-title: moveTo() slug: Web/API/Window/moveTo page-type: web-api-instance-method browser-compat: api.Window.moveTo --- {{APIRef}} The **`moveTo()`** method of the {{domxref("Window")}} interface moves the current window to the specified coordinates. > **Note:** This function ...
0
data/mdn-content/files/en-us/web/api/window
data/mdn-content/files/en-us/web/api/window/messageerror_event/index.md
--- title: "Window: messageerror event" short-title: messageerror slug: Web/API/Window/messageerror_event page-type: web-api-event browser-compat: api.Window.messageerror_event --- {{APIRef}} The `messageerror` event is fired on a {{domxref('Window')}} object when it receives a message that can't be deserialized. Th...
0
data/mdn-content/files/en-us/web/api/window
data/mdn-content/files/en-us/web/api/window/parent/index.md
--- title: "Window: parent property" short-title: parent slug: Web/API/Window/parent page-type: web-api-instance-property browser-compat: api.Window.parent --- {{APIRef}} The **`Window.parent`** property is a reference to the parent of the current window or subframe. If a window does not have a parent, its `parent` ...
0
data/mdn-content/files/en-us/web/api/window
data/mdn-content/files/en-us/web/api/window/vrdisplaydisconnect_event/index.md
--- title: "Window: vrdisplaydisconnect event" short-title: vrdisplaydisconnect slug: Web/API/Window/vrdisplaydisconnect_event page-type: web-api-event status: - deprecated - non-standard browser-compat: api.Window.vrdisplaydisconnect_event --- {{APIRef("Window")}}{{Deprecated_Header}}{{Non-standard_Header}} The ...
0
data/mdn-content/files/en-us/web/api/window
data/mdn-content/files/en-us/web/api/window/mozinnerscreeny/index.md
--- title: "Window: mozInnerScreenY property" short-title: mozInnerScreenY slug: Web/API/Window/mozInnerScreenY page-type: web-api-instance-property status: - non-standard browser-compat: api.Window.mozInnerScreenY --- {{APIRef}}{{Non-standard_Header}} The `mozInnerScreenY` property of the {{domxref("Window")}} int...
0
data/mdn-content/files/en-us/web/api/window
data/mdn-content/files/en-us/web/api/window/deviceorientation_event/index.md
--- title: "Window: deviceorientation event" short-title: deviceorientation slug: Web/API/Window/deviceorientation_event page-type: web-api-event browser-compat: api.Window.deviceorientation_event --- {{APIRef("Device Orientation Events")}}{{securecontext_header}} The **`deviceorientation`** event is fired when fresh...
0
data/mdn-content/files/en-us/web/api/window
data/mdn-content/files/en-us/web/api/window/length/index.md
--- title: "Window: length property" short-title: length slug: Web/API/Window/length page-type: web-api-instance-property browser-compat: api.Window.length --- {{ ApiRef() }} Returns the number of frames (either {{HTMLElement("frame")}} or {{HTMLElement("iframe")}} elements) in the window. ## Value A number. ## Ex...
0
data/mdn-content/files/en-us/web/api/window
data/mdn-content/files/en-us/web/api/window/documentpictureinpicture/index.md
--- title: "Window: documentPictureInPicture property" short-title: documentPictureInPicture slug: Web/API/Window/documentPictureInPicture page-type: web-api-instance-property status: - experimental browser-compat: api.Window.documentPictureInPicture --- {{APIRef}}{{seecompattable}}{{SecureContext_Header}} The **`d...
0
data/mdn-content/files/en-us/web/api/window
data/mdn-content/files/en-us/web/api/window/releaseevents/index.md
--- title: "Window: releaseEvents() method" short-title: releaseEvents() slug: Web/API/Window/releaseEvents page-type: web-api-instance-method status: - deprecated browser-compat: api.Window.releaseEvents --- {{APIRef}}{{Deprecated_Header}} Releases the window from trapping events of a specific type. ## Syntax ``...
0
data/mdn-content/files/en-us/web/api/window
data/mdn-content/files/en-us/web/api/window/prompt/index.md
--- title: "Window: prompt() method" short-title: prompt() slug: Web/API/Window/prompt page-type: web-api-instance-method browser-compat: api.Window.prompt --- {{ApiRef("Window")}} `window.prompt()` instructs the browser to display a dialog with an optional message prompting the user to input some text, and to wait u...
0
data/mdn-content/files/en-us/web/api/window
data/mdn-content/files/en-us/web/api/window/fullscreen/index.md
--- title: "Window: fullScreen property" short-title: fullScreen slug: Web/API/Window/fullScreen page-type: web-api-instance-property status: - non-standard browser-compat: api.Window.fullScreen --- {{APIRef}}{{Non-standard_Header}} The **`fullScreen`** property of the `Window` interface indicates whether the windo...
0
data/mdn-content/files/en-us/web/api/window
data/mdn-content/files/en-us/web/api/window/find/index.md
--- title: "Window: find() method" short-title: find() slug: Web/API/Window/find page-type: web-api-instance-method status: - non-standard browser-compat: api.Window.find --- {{ApiRef}}{{Non-standard_Header}} > **Note:** Support for `Window.find()` might change in future > versions of Gecko. See [Firefox bug 672395...
0
data/mdn-content/files/en-us/web/api/window
data/mdn-content/files/en-us/web/api/window/outerheight/index.md
--- title: "Window: outerHeight property" short-title: outerHeight slug: Web/API/Window/outerHeight page-type: web-api-instance-property browser-compat: api.Window.outerHeight --- {{APIRef}} The **`Window.outerHeight`** read-only property returns the height in pixels of the whole browser window, including any sidebar...
0
data/mdn-content/files/en-us/web/api/window
data/mdn-content/files/en-us/web/api/window/unhandledrejection_event/index.md
--- title: "Window: unhandledrejection event" short-title: unhandledrejection slug: Web/API/Window/unhandledrejection_event page-type: web-api-event browser-compat: api.Window.unhandledrejection_event --- {{APIRef("HTML DOM")}} The **`unhandledrejection`** event is sent to the global scope of a script when a JavaScri...
0
data/mdn-content/files/en-us/web/api/window
data/mdn-content/files/en-us/web/api/window/offline_event/index.md
--- title: "Window: offline event" short-title: offline slug: Web/API/Window/offline_event page-type: web-api-event browser-compat: api.Window.offline_event --- {{APIRef}} The **`offline`** event of the {{domxref("Window")}} interface is fired when the browser has lost access to the network and the value of {{domxref...
0
data/mdn-content/files/en-us/web/api/window
data/mdn-content/files/en-us/web/api/window/requestfilesystem/index.md
--- title: "Window: requestFileSystem() method" short-title: requestFileSystem() slug: Web/API/Window/requestFileSystem page-type: web-api-instance-method status: - deprecated - non-standard browser-compat: api.Window.requestFileSystem --- {{APIRef("HTML DOM")}}{{Deprecated_Header}}{{non-standard_header}} The non...
0
data/mdn-content/files/en-us/web/api/window
data/mdn-content/files/en-us/web/api/window/orientationchange_event/index.md
--- title: "Window: orientationchange event" short-title: orientationchange slug: Web/API/Window/orientationchange_event page-type: web-api-event status: - deprecated browser-compat: api.Window.orientationchange_event --- {{APIRef}}{{Deprecated_Header}} The `orientationchange` event is fired when the orientation of...
0
data/mdn-content/files/en-us/web/api/window
data/mdn-content/files/en-us/web/api/window/unload_event/index.md
--- title: "Window: unload event" short-title: unload slug: Web/API/Window/unload_event page-type: web-api-event status: - deprecated browser-compat: api.Window.unload_event --- {{APIRef}}{{deprecated_header}} > **Warning:** Developers should avoid using this event. See "Usage notes" below. The **`unload`** event ...
0
data/mdn-content/files/en-us/web/api/window
data/mdn-content/files/en-us/web/api/window/frameelement/index.md
--- title: "Window: frameElement property" short-title: frameElement slug: Web/API/Window/frameElement page-type: web-api-instance-property browser-compat: api.Window.frameElement --- {{ApiRef}} The **`Window.frameElement`** property returns the element (such as {{HTMLElement("iframe")}} or {{HTMLElement("object")}})...
0
data/mdn-content/files/en-us/web/api/window
data/mdn-content/files/en-us/web/api/window/scrollbars/index.md
--- title: "Window: scrollbars property" short-title: scrollbars slug: Web/API/Window/scrollbars page-type: web-api-instance-property browser-compat: api.Window.scrollbars --- {{APIRef()}} Returns the `scrollbars` object. This is one of a group of `Window` properties that contain a boolean `visible` property, that u...
0
data/mdn-content/files/en-us/web/api/window
data/mdn-content/files/en-us/web/api/window/vrdisplayactivate_event/index.md
--- title: "Window: vrdisplayactivate event" short-title: vrdisplayactivate slug: Web/API/Window/vrdisplayactivate_event page-type: web-api-event status: - deprecated - non-standard browser-compat: api.Window.vrdisplayactivate_event --- {{APIRef("Window")}}{{Deprecated_Header}}{{Non-standard_Header}} The **`vrdis...
0
data/mdn-content/files/en-us/web/api/window
data/mdn-content/files/en-us/web/api/window/outerwidth/index.md
--- title: "Window: outerWidth property" short-title: outerWidth slug: Web/API/Window/outerWidth page-type: web-api-instance-property browser-compat: api.Window.outerWidth --- {{APIRef}} **`Window.outerWidth`** read-only property returns the width of the outside of the browser window. It represents the width of the w...
0
data/mdn-content/files/en-us/web/api/window
data/mdn-content/files/en-us/web/api/window/screen/index.md
--- title: "Window: screen property" short-title: screen slug: Web/API/Window/screen page-type: web-api-instance-property browser-compat: api.Window.screen --- {{APIRef("CSSOM")}} The {{DOMxRef("Window")}} property **`screen`** returns a reference to the screen object associated with the window. The `screen` object, ...
0
data/mdn-content/files/en-us/web/api/window
data/mdn-content/files/en-us/web/api/window/sessionstorage/index.md
--- title: "Window: sessionStorage property" short-title: sessionStorage slug: Web/API/Window/sessionStorage page-type: web-api-instance-property browser-compat: api.Window.sessionStorage --- {{APIRef("Web Storage API")}} The read-only **`sessionStorage`** property accesses a session {{DOMxRef("Storage")}} object for...
0
data/mdn-content/files/en-us/web/api/window
data/mdn-content/files/en-us/web/api/window/status/index.md
--- title: "Window: status property" short-title: status slug: Web/API/Window/status page-type: web-api-instance-property status: - deprecated browser-compat: api.Window.status --- {{APIRef}}{{Deprecated_Header}} The **`status`** property of the {{domxref("Window")}} interface was originally intended to set the tex...
0
data/mdn-content/files/en-us/web/api/window
data/mdn-content/files/en-us/web/api/window/getselection/index.md
--- title: "Window: getSelection() method" short-title: getSelection() slug: Web/API/Window/getSelection page-type: web-api-instance-method browser-compat: api.Window.getSelection --- {{ ApiRef() }} The **`Window.getSelection()`** method returns a {{domxref("Selection")}} object representing the range of text selecte...
0
data/mdn-content/files/en-us/web/api/window
data/mdn-content/files/en-us/web/api/window/orientation/index.md
--- title: "Window: orientation property" short-title: orientation slug: Web/API/Window/orientation page-type: web-api-instance-property status: - deprecated browser-compat: api.Window.orientation --- {{APIRef}}{{Deprecated_Header}} Returns the orientation in degrees (in 90-degree increments) of the viewport relati...
0
data/mdn-content/files/en-us/web/api/window
data/mdn-content/files/en-us/web/api/window/showmodaldialog/index.md
--- title: "Window: showModalDialog() method" short-title: showModalDialog() slug: Web/API/Window/showModalDialog page-type: web-api-instance-method status: - deprecated - non-standard browser-compat: api.Window.showModalDialog --- {{APIRef}}{{Deprecated_Header}}{{Non-standard_Header}} > **Warning:** This feature...
0
data/mdn-content/files/en-us/web/api/window
data/mdn-content/files/en-us/web/api/window/sidebar/index.md
--- title: "Window: sidebar property" short-title: sidebar slug: Web/API/Window/sidebar page-type: web-api-instance-property status: - deprecated - non-standard --- {{APIRef}} {{Deprecated_Header}} > **Warning:** This non-standard Firefox-only alias of the [`window.external`](/en-US/docs/Web/API/Window/external) ...
0
data/mdn-content/files/en-us/web/api/window
data/mdn-content/files/en-us/web/api/window/pageshow_event/index.md
--- title: "Window: pageshow event" short-title: pageshow slug: Web/API/Window/pageshow_event page-type: web-api-event browser-compat: api.Window.pageshow_event --- {{APIRef("HTML DOM")}} The **`pageshow`** event is sent to a {{domxref("Window")}} when the browser displays the window's document due to navigation. Th...
0
data/mdn-content/files/en-us/web/api/window
data/mdn-content/files/en-us/web/api/window/setimmediate/index.md
--- title: "Window: setImmediate() method" short-title: setImmediate() slug: Web/API/Window/setImmediate page-type: web-api-instance-method status: - deprecated - non-standard browser-compat: api.Window.setImmediate --- {{APIRef("HTML DOM")}} {{deprecated_header}}{{non-standard_header}} This method is used to bre...
0
data/mdn-content/files/en-us/web/api/window
data/mdn-content/files/en-us/web/api/window/afterprint_event/index.md
--- title: "Window: afterprint event" short-title: afterprint slug: Web/API/Window/afterprint_event page-type: web-api-event browser-compat: api.Window.afterprint_event --- {{APIRef}} The **`afterprint`** event is fired after the associated document has started printing or the print preview has been closed. The {{do...
0
data/mdn-content/files/en-us/web/api/window
data/mdn-content/files/en-us/web/api/window/scrollbypages/index.md
--- title: "Window: scrollByPages() method" short-title: scrollByPages() slug: Web/API/Window/scrollByPages page-type: web-api-instance-method status: - non-standard browser-compat: api.Window.scrollByPages --- {{ ApiRef() }} {{Non-standard_header}} The **`Window.scrollByPages()`** method scrolls the current docume...
0
data/mdn-content/files/en-us/web/api/window
data/mdn-content/files/en-us/web/api/window/deviceorientationabsolute_event/index.md
--- title: "Window: deviceorientationabsolute event" short-title: deviceorientationabsolute slug: Web/API/Window/deviceorientationabsolute_event page-type: web-api-event browser-compat: api.Window.deviceorientationabsolute_event --- {{APIRef("Device Orientation Events")}}{{securecontext_header}} The **`deviceorientat...
0
data/mdn-content/files/en-us/web/api/window
data/mdn-content/files/en-us/web/api/window/print/index.md
--- title: "Window: print() method" short-title: print() slug: Web/API/Window/print page-type: web-api-instance-method browser-compat: api.Window.print --- {{ ApiRef() }} Opens the print dialog to print the current document. If the document is still loading when this function is called, then the document will finish...
0
data/mdn-content/files/en-us/web/api/window
data/mdn-content/files/en-us/web/api/window/visualviewport/index.md
--- title: "Window: visualViewport property" short-title: visualViewport slug: Web/API/Window/visualViewport page-type: web-api-instance-property browser-compat: api.Window.visualViewport --- {{APIRef("Visual Viewport")}} The **`visualViewport`** read-only property of the {{domxref("Window")}} interface returns a {{d...
0
data/mdn-content/files/en-us/web/api/window
data/mdn-content/files/en-us/web/api/window/devicemotion_event/index.md
--- title: "Window: devicemotion event" short-title: devicemotion slug: Web/API/Window/devicemotion_event page-type: web-api-event browser-compat: api.Window.devicemotion_event --- {{APIRef("Device Orientation Events")}}{{securecontext_header}} The **`devicemotion`** event is fired at a regular interval and indicates...
0
data/mdn-content/files/en-us/web/api/window
data/mdn-content/files/en-us/web/api/window/cookiestore/index.md
--- title: "Window: cookieStore property" short-title: cookieStore slug: Web/API/Window/cookieStore page-type: web-api-instance-property status: - experimental browser-compat: api.Window.cookieStore --- {{securecontext_header}}{{APIRef("Cookie Store API")}}{{SeeCompatTable}} The **`cookieStore`** read-only property...
0
data/mdn-content/files/en-us/web/api/window
data/mdn-content/files/en-us/web/api/window/matchmedia/index.md
--- title: "Window: matchMedia() method" short-title: matchMedia() slug: Web/API/Window/matchMedia page-type: web-api-instance-method browser-compat: api.Window.matchMedia --- {{APIRef}} The {{domxref("Window")}} interface's **`matchMedia()`** method returns a new {{domxref("MediaQueryList")}} object that can then be...
0
data/mdn-content/files/en-us/web/api/window
data/mdn-content/files/en-us/web/api/window/scrollby/index.md
--- title: "Window: scrollBy() method" short-title: scrollBy() slug: Web/API/Window/scrollBy page-type: web-api-instance-method browser-compat: api.Window.scrollBy --- {{ APIRef() }} The **`Window.scrollBy()`** method scrolls the document in the window by the given amount. ## Syntax ```js-nolint scrollBy(x-coord, y...
0
data/mdn-content/files/en-us/web/api/window
data/mdn-content/files/en-us/web/api/window/top/index.md
--- title: "Window: top property" short-title: top slug: Web/API/Window/top page-type: web-api-instance-property browser-compat: api.Window.top --- {{APIRef}} Returns a reference to the topmost window in the window hierarchy. ## Value The reference to the topmost window. ## Notes Where the {{domxref("window.paren...
0
data/mdn-content/files/en-us/web/api/window
data/mdn-content/files/en-us/web/api/window/screentop/index.md
--- title: "Window: screenTop property" short-title: screenTop slug: Web/API/Window/screenTop page-type: web-api-instance-property browser-compat: api.Window.screenTop --- {{APIRef}} The **`Window.screenTop`** read-only property returns the vertical distance, in CSS pixels, from the top border of the user's browser v...
0
data/mdn-content/files/en-us/web/api/window
data/mdn-content/files/en-us/web/api/window/vrdisplayconnect_event/index.md
--- title: "Window: vrdisplayconnect event" short-title: vrdisplayconnect slug: Web/API/Window/vrdisplayconnect_event page-type: web-api-event status: - deprecated - non-standard browser-compat: api.Window.vrdisplayconnect_event --- {{APIRef("Window")}}{{Deprecated_Header}}{{Non-standard_Header}} The **`vrdisplay...
0
data/mdn-content/files/en-us/web/api/window
data/mdn-content/files/en-us/web/api/window/scrollmaxx/index.md
--- title: "Window: scrollMaxX property" short-title: scrollMaxX slug: Web/API/Window/scrollMaxX page-type: web-api-instance-property status: - non-standard browser-compat: api.Window.scrollMaxX --- {{APIRef}} {{Non-standard_header}} The **`Window.scrollMaxX`** read-only property returns the maximum number of pixel...
0
data/mdn-content/files/en-us/web/api/window
data/mdn-content/files/en-us/web/api/window/cut_event/index.md
--- title: "Window: cut event" short-title: cut slug: Web/API/Window/cut_event page-type: web-api-event browser-compat: api.Element.cut_event --- {{APIRef}} The **`cut`** event is fired when the user has initiated a "cut" action through the browser's user interface. The original target for this event is the {{domxre...
0
data/mdn-content/files/en-us/web/api/window
data/mdn-content/files/en-us/web/api/window/mozinnerscreenx/index.md
--- title: "Window: mozInnerScreenX property" short-title: mozInnerScreenX slug: Web/API/Window/mozInnerScreenX page-type: web-api-instance-property status: - non-standard browser-compat: api.Window.mozInnerScreenX --- {{APIRef}}{{Non-standard_Header}} Gets the X coordinate of the top-left corner of the window's vi...
0
data/mdn-content/files/en-us/web/api/window
data/mdn-content/files/en-us/web/api/window/gamepaddisconnected_event/index.md
--- title: "Window: gamepaddisconnected event" short-title: gamepaddisconnected slug: Web/API/Window/gamepaddisconnected_event page-type: web-api-event browser-compat: api.Window.gamepaddisconnected_event --- {{APIRef}} The `gamepaddisconnected` event is fired when the browser detects that a gamepad has been disconne...
0
data/mdn-content/files/en-us/web/api/window
data/mdn-content/files/en-us/web/api/window/scrollbylines/index.md
--- title: "Window: scrollByLines() method" short-title: scrollByLines() slug: Web/API/Window/scrollByLines page-type: web-api-instance-method status: - non-standard browser-compat: api.Window.scrollByLines --- {{ ApiRef() }} {{Non-standard_header}} The **`Window.scrollByLines()`** method scrolls the document by th...
0
data/mdn-content/files/en-us/web/api/window
data/mdn-content/files/en-us/web/api/window/navigator/index.md
--- title: "Window: navigator property" short-title: navigator slug: Web/API/Window/navigator page-type: web-api-instance-property browser-compat: api.Window.navigator --- {{APIRef}} The **`Window.navigator`** read-only property returns a reference to the {{domxref("Navigator")}} object, which has methods and propert...
0
data/mdn-content/files/en-us/web/api/window
data/mdn-content/files/en-us/web/api/window/back/index.md
--- title: "Window: back() method" short-title: back() slug: Web/API/Window/back page-type: web-api-instance-method status: - deprecated - non-standard --- {{APIRef}}{{ Non-standard_header() }}{{deprecated_header}} The obsolete and non-standard method `back()` on the {{domxref("window")}} interface returns the wi...
0
data/mdn-content/files/en-us/web/api/window
data/mdn-content/files/en-us/web/api/window/resize_event/index.md
--- title: "Window: resize event" short-title: resize slug: Web/API/Window/resize_event page-type: web-api-event browser-compat: api.Window.resize_event --- {{APIRef}} The **`resize`** event fires when the document view (window) has been resized. This event is not cancelable and does not bubble. In some earlier bro...
0
data/mdn-content/files/en-us/web/api/window
data/mdn-content/files/en-us/web/api/window/customelements/index.md
--- title: "Window: customElements property" short-title: customElements slug: Web/API/Window/customElements page-type: web-api-instance-property browser-compat: api.Window.customElements --- {{APIRef("Web Components")}} The **`customElements`** read-only property of the {{domxref("Window")}} interface returns a refe...
0
data/mdn-content/files/en-us/web/api/window
data/mdn-content/files/en-us/web/api/window/alert/index.md
--- title: "Window: alert() method" short-title: alert() slug: Web/API/Window/alert page-type: web-api-instance-method browser-compat: api.Window.alert --- {{ APIRef }} `window.alert()` instructs the browser to display a dialog with an optional message, and to wait until the user dismisses the dialog. Under some con...
0
data/mdn-content/files/en-us/web/api/window
data/mdn-content/files/en-us/web/api/window/gamepadconnected_event/index.md
--- title: "Window: gamepadconnected event" short-title: gamepadconnected slug: Web/API/Window/gamepadconnected_event page-type: web-api-event browser-compat: api.Window.gamepadconnected_event --- {{APIRef}} The `gamepadconnected` event is fired when the browser detects that a gamepad has been connected or the first ...
0
data/mdn-content/files/en-us/web/api/window
data/mdn-content/files/en-us/web/api/window/speechsynthesis/index.md
--- title: "Window: speechSynthesis property" short-title: speechSynthesis slug: Web/API/Window/speechSynthesis page-type: web-api-instance-property browser-compat: api.Window.speechSynthesis --- {{APIRef()}} The `speechSynthesis` read-only property of the Window object returns a {{domxref("SpeechSynthesis")}} object...
0
data/mdn-content/files/en-us/web/api/window
data/mdn-content/files/en-us/web/api/window/personalbar/index.md
--- title: "Window: personalbar property" short-title: personalbar slug: Web/API/Window/personalbar page-type: web-api-instance-property browser-compat: api.Window.personalbar --- {{APIRef}} Returns the `personalbar` object. This is one of a group of `Window` properties that contain a boolean `visible` property, tha...
0
data/mdn-content/files/en-us/web/api/window
data/mdn-content/files/en-us/web/api/window/clearimmediate/index.md
--- title: "Window: clearImmediate() method" short-title: clearImmediate() slug: Web/API/Window/clearImmediate page-type: web-api-instance-method status: - deprecated - non-standard browser-compat: api.Window.clearImmediate --- {{APIRef("HTML DOM")}} {{deprecated_header}}{{non-standard_header}} This method clears...
0
data/mdn-content/files/en-us/web/api/window
data/mdn-content/files/en-us/web/api/window/focus_event/index.md
--- title: "Window: focus event" short-title: focus slug: Web/API/Window/focus_event page-type: web-api-event browser-compat: api.Window.focus_event --- {{APIRef}} The **`focus`** event fires when an element has received focus. The opposite of `focus` is {{domxref("Window/blur_event", "blur")}}. This event is not c...
0
data/mdn-content/files/en-us/web/api/window
data/mdn-content/files/en-us/web/api/window/setresizable/index.md
--- title: "Window: setResizable() method" short-title: setResizable() slug: Web/API/Window/setResizable page-type: web-api-instance-method status: - deprecated - non-standard browser-compat: api.Window.setResizable --- {{APIRef("HTML DOM")}} {{deprecated_header}}{{non-standard_header}} This method does nothing; ...
0
data/mdn-content/files/en-us/web/api/window
data/mdn-content/files/en-us/web/api/window/screenx/index.md
--- title: "Window: screenX property" short-title: screenX slug: Web/API/Window/screenX page-type: web-api-instance-property browser-compat: api.Window.screenX --- {{APIRef}} The **`Window.screenX`** read-only property returns the horizontal distance, in CSS pixels, of the left border of the user's browser viewport t...
0
data/mdn-content/files/en-us/web/api/window
data/mdn-content/files/en-us/web/api/window/querylocalfonts/index.md
--- title: "Window: queryLocalFonts() method" short-title: queryLocalFonts() slug: Web/API/Window/queryLocalFonts page-type: web-api-instance-method status: - experimental browser-compat: api.Window.queryLocalFonts --- {{APIRef("Local Font Access API")}}{{SeeCompatTable}}{{SecureContext_Header}} The **`window.query...
0
data/mdn-content/files/en-us/web/api/window
data/mdn-content/files/en-us/web/api/window/toolbar/index.md
--- title: "Window: toolbar property" short-title: toolbar slug: Web/API/Window/toolbar page-type: web-api-instance-property browser-compat: api.Window.toolbar --- {{APIRef}} Returns the `toolbar` object. This is one of a group of `Window` properties that contain a boolean `visible` property, that used to represent ...
0
data/mdn-content/files/en-us/web/api/window
data/mdn-content/files/en-us/web/api/window/scrolly/index.md
--- title: "Window: scrollY property" short-title: scrollY slug: Web/API/Window/scrollY page-type: web-api-instance-property browser-compat: api.Window.scrollY --- {{APIRef("CSSOM View")}} The read-only **`scrollY`** property of the {{domxref("Window")}} interface returns the number of pixels that the document is cur...
0
data/mdn-content/files/en-us/web/api/window
data/mdn-content/files/en-us/web/api/window/cancelanimationframe/index.md
--- title: "Window: cancelAnimationFrame() method" short-title: cancelAnimationFrame() slug: Web/API/Window/cancelAnimationFrame page-type: web-api-instance-method browser-compat: api.Window.cancelAnimationFrame --- {{APIRef}} The **`window.cancelAnimationFrame()`** method cancels an animation frame request previousl...
0
data/mdn-content/files/en-us/web/api/window
data/mdn-content/files/en-us/web/api/window/requestanimationframe/index.md
--- title: "Window: requestAnimationFrame() method" short-title: requestAnimationFrame() slug: Web/API/window/requestAnimationFrame page-type: web-api-instance-method browser-compat: api.Window.requestAnimationFrame --- {{APIRef}} The **`window.requestAnimationFrame()`** method tells the browser you wish to perform a...
0
data/mdn-content/files/en-us/web/api/window
data/mdn-content/files/en-us/web/api/window/popstate_event/index.md
--- title: "Window: popstate event" short-title: popstate slug: Web/API/Window/popstate_event page-type: web-api-event browser-compat: api.Window.popstate_event --- {{APIRef("History API")}} The **`popstate`** event of the {{domxref("Window")}} interface is fired when the active history entry changes while the user n...
0
data/mdn-content/files/en-us/web/api/window
data/mdn-content/files/en-us/web/api/window/vrdisplaydeactivate_event/index.md
--- title: "Window: vrdisplaydeactivate event" short-title: vrdisplaydeactivate slug: Web/API/Window/vrdisplaydeactivate_event page-type: web-api-event status: - deprecated - non-standard browser-compat: api.Window.vrdisplaydeactivate_event --- {{APIRef("Window")}}{{Deprecated_Header}}{{Non-standard_Header}} The ...
0
data/mdn-content/files/en-us/web/api/window
data/mdn-content/files/en-us/web/api/window/self/index.md
--- title: "Window: self property" short-title: self slug: Web/API/Window/self page-type: web-api-instance-property browser-compat: api.Window.self --- {{APIRef}} The **`Window.self`** read-only property returns the window itself, as a {{glossary("WindowProxy")}}. It can be used with dot notation on a `window` object...
0
data/mdn-content/files/en-us/web/api/window
data/mdn-content/files/en-us/web/api/window/moveby/index.md
--- title: "Window: moveBy() method" short-title: moveBy() slug: Web/API/Window/moveBy page-type: web-api-instance-method browser-compat: api.Window.moveBy --- {{APIRef}} The **`moveBy()`** method of the {{domxref("Window")}} interface moves the current window by a specified amount. > **Note:** This function moves t...
0
data/mdn-content/files/en-us/web/api/window
data/mdn-content/files/en-us/web/api/window/getscreendetails/index.md
--- title: "Window: getScreenDetails() method" short-title: getScreenDetails() slug: Web/API/Window/getScreenDetails page-type: web-api-instance-method status: - experimental browser-compat: api.Window.getScreenDetails --- {{APIRef("Window Management API")}}{{SeeCompatTable}}{{securecontext_header}} The **`getScree...
0
data/mdn-content/files/en-us/web/api/window
data/mdn-content/files/en-us/web/api/window/blur_event/index.md
--- title: "Window: blur event" short-title: blur slug: Web/API/Window/blur_event page-type: web-api-event browser-compat: api.Window.blur_event --- {{APIRef}} The **`blur`** event fires when an element has lost focus. The opposite of `blur` is {{domxref("Window/focus_event", "focus")}}. This event is not cancelabl...
0
data/mdn-content/files/en-us/web/api/window
data/mdn-content/files/en-us/web/api/window/postmessage/index.md
--- title: "Window: postMessage() method" short-title: postMessage() slug: Web/API/Window/postMessage page-type: web-api-instance-method browser-compat: api.Window.postMessage --- {{ApiRef("HTML DOM")}} The **`window.postMessage()`** method safely enables cross-origin communication between {{domxref("Window")}} objec...
0
data/mdn-content/files/en-us/web/api/window
data/mdn-content/files/en-us/web/api/window/vrdisplaypresentchange_event/index.md
--- title: "Window: vrdisplaypresentchange event" short-title: vrdisplaypresentchange slug: Web/API/Window/vrdisplaypresentchange_event page-type: web-api-event status: - deprecated - non-standard browser-compat: api.Window.vrdisplaypresentchange_event --- {{APIRef("Window")}}{{Deprecated_Header}}{{Non-standard_He...
0
data/mdn-content/files/en-us/web/api/window
data/mdn-content/files/en-us/web/api/window/message_event/index.md
--- title: "Window: message event" short-title: message slug: Web/API/Window/message_event page-type: web-api-event browser-compat: api.Window.message_event --- {{APIRef}} The `message` event is fired on a {{domxref('Window')}} object when the window receives a message, for example from a call to [`Window.postMessage...
0
data/mdn-content/files/en-us/web/api/window
data/mdn-content/files/en-us/web/api/window/innerwidth/index.md
--- title: "Window: innerWidth property" short-title: innerWidth slug: Web/API/Window/innerWidth page-type: web-api-instance-property browser-compat: api.Window.innerWidth --- {{APIRef}} The read-only {{domxref("Window")}} property **`innerWidth`** returns the interior width of the window in pixels (that is, the widt...
0
data/mdn-content/files/en-us/web/api/window
data/mdn-content/files/en-us/web/api/window/load_event/index.md
--- title: "Window: load event" short-title: load slug: Web/API/Window/load_event page-type: web-api-event browser-compat: api.Window.load_event --- {{APIRef}} The **`load`** event is fired when the whole page has loaded, including all dependent resources such as stylesheets, scripts, iframes, and images. This is in ...
0
data/mdn-content/files/en-us/web/api/window
data/mdn-content/files/en-us/web/api/window/getdefaultcomputedstyle/index.md
--- title: "Window: getDefaultComputedStyle() method" short-title: getDefaultComputedStyle() slug: Web/API/window/getDefaultComputedStyle page-type: web-api-instance-method status: - non-standard browser-compat: api.Window.getDefaultComputedStyle --- {{APIRef("CSSOM")}}{{Non-standard_Header}} The **`getDefaultCompu...
0
data/mdn-content/files/en-us/web/api/window
data/mdn-content/files/en-us/web/api/window/menubar/index.md
--- title: "Window: menubar property" short-title: menubar slug: Web/API/Window/menubar page-type: web-api-instance-property browser-compat: api.Window.menubar --- {{ APIRef() }} Returns the `menubar` object. This is one of a group of `Window` properties that contain a boolean `visible` property, that used to repres...
0
data/mdn-content/files/en-us/web/api/window
data/mdn-content/files/en-us/web/api/window/rejectionhandled_event/index.md
--- title: "Window: rejectionhandled event" short-title: rejectionhandled slug: Web/API/Window/rejectionhandled_event page-type: web-api-event browser-compat: api.Window.rejectionhandled_event --- {{APIRef("HTML DOM")}} The **`rejectionhandled`** event is sent to the script's global scope (usually {{domxref("window")...
0
data/mdn-content/files/en-us/web/api/window
data/mdn-content/files/en-us/web/api/window/blur/index.md
--- title: "Window: blur() method" short-title: blur() slug: Web/API/Window/blur page-type: web-api-instance-method status: - deprecated browser-compat: api.Window.blur --- {{APIRef}} The **`Window.blur()`** method does nothing. > **Note:** Historically, this method was the programmatic equivalent of the user shif...
0
data/mdn-content/files/en-us/web/api/window
data/mdn-content/files/en-us/web/api/window/devicepixelratio/index.md
--- title: "Window: devicePixelRatio property" short-title: devicePixelRatio slug: Web/API/Window/devicePixelRatio page-type: web-api-instance-property browser-compat: api.Window.devicePixelRatio --- {{APIRef}} The **`devicePixelRatio`** of {{domxref("Window")}} interface returns the ratio of the resolution in _physi...
0
data/mdn-content/files/en-us/web/api/window
data/mdn-content/files/en-us/web/api/window/launchqueue/index.md
--- title: "Window: launchQueue property" short-title: launchQueue slug: Web/API/Window/launchQueue page-type: web-api-instance-property status: - experimental browser-compat: api.Window.launchQueue --- {{APIRef("Launch Handler API")}}{{SeeCompatTable}} The `launchQueue` read-only property of the {{domxref("Window"...
0
data/mdn-content/files/en-us/web/api/window
data/mdn-content/files/en-us/web/api/window/console/index.md
--- title: "Window: console property" short-title: console slug: Web/API/Window/console page-type: web-api-instance-property spec-urls: https://console.spec.whatwg.org/ --- {{APIRef}} The **`Window.console`** property returns a reference to the {{domxref("console")}} object, which provides methods for logging informa...
0
data/mdn-content/files/en-us/web/api/window
data/mdn-content/files/en-us/web/api/window/beforeinstallprompt_event/index.md
--- title: "Window: beforeinstallprompt event" short-title: beforeinstallprompt slug: Web/API/Window/beforeinstallprompt_event page-type: web-api-event browser-compat: api.Window.beforeinstallprompt_event --- {{APIRef}} The **`beforeinstallprompt`** event fires when the browser has detected that a website can be [ins...
0
data/mdn-content/files/en-us/web/api/window
data/mdn-content/files/en-us/web/api/window/event/index.md
--- title: "Window: event property" short-title: event slug: Web/API/Window/event page-type: web-api-instance-property status: - deprecated browser-compat: api.Window.event --- {{APIRef("DOM")}}{{Deprecated_Header}} The read-only {{domxref("Window")}} property **`event`** returns the {{domxref("Event")}} which is c...
0
data/mdn-content/files/en-us/web/api/window
data/mdn-content/files/en-us/web/api/window/updatecommands/index.md
--- title: "Window: updateCommands() method" short-title: updateCommands() slug: Web/API/Window/updateCommands page-type: web-api-instance-method status: - non-standard browser-compat: api.Window.updateCommands --- {{ApiRef}}{{Non-standard_Header}} Updates the state of commands of the current chrome window (UI). #...
0
data/mdn-content/files/en-us/web/api/window
data/mdn-content/files/en-us/web/api/window/scrollto/index.md
--- title: "Window: scrollTo() method" short-title: scrollTo() slug: Web/API/Window/scrollTo page-type: web-api-instance-method browser-compat: api.Window.scrollTo --- {{APIRef}} **`Window.scrollTo()`** scrolls to a particular set of coordinates in the document. ## Syntax ```js-nolint scrollTo(x-coord, y-coord) scr...
0
data/mdn-content/files/en-us/web/api/window
data/mdn-content/files/en-us/web/api/window/beforeunload_event/index.md
--- title: "Window: beforeunload event" short-title: beforeunload slug: Web/API/Window/beforeunload_event page-type: web-api-event browser-compat: api.Window.beforeunload_event --- {{APIRef}} The **`beforeunload`** event is fired when the current window, contained document, and associated resources are about to be un...
0