The entry point to many XPCOM features.
The entry point to many XPCOM features. Some properties, e.g. classes, are only available to sufficiently privileged code. Web code should not use this property.
TBD
returns an object that provides static methods used for creating and managing object URLs.
returns an object that provides static methods used for creating and managing object URLs. It can also be called as a constructor to construct URL objects.
TODO
Displays an alert box with a message and an OK button
Displays an alert box with a message and an OK button
Optional. Specifies the text to display in the alert box, or an object converted into a string and displayed
Read-only: An OfflineResourceList object providing access to the offline resources for the window.
Returns a reference to the window object in the frames.
Returns a reference to the window object in the frames. See Window.frames for more details.
the window index
the window instance at the given index
Decodes a base-64 encoded string
Decodes a base-64 encoded string
Required. The string which has been encoded by the btoa() method
Removes focus from the current window
Encodes a string in base-64
Encodes a string in base-64
Required. The string to be encoded
A String, representing the base-64 encoded string
Read-only: Returns the CacheStorage object associated with the current origin.
Read-only: Returns the CacheStorage object associated with the current origin. This object enables service worker functionality such as storing assets for offline use, and generating custom responses to requests.
Clears a timer set with setInterval()
Clears a timer set with setInterval()
Required. The ID of the timer returned by the setInterval() method
Clears a timer set with setTimeout()
Clears a timer set with setTimeout()
Required. The ID value of the timer returned by the setTimeout() method
Closes the current window
Read-only: This property indicates whether the current window is closed or not.
Displays a dialog box with a message and an OK and a Cancel button
Displays a dialog box with a message and an OK and a Cancel button
Optional. Specifies the text to display in the confirm box
Read-only: Returns a reference to the console object which provides access to the browser's debugging console.
Read-only: Returns a reference to the content element in the current window.
Read-only: Returns a reference to the content element in the current window. The obsolete variant with underscore is no longer available from Web content.
Read-only: Returns the XUL controller objects for the current chrome window.
Read-only: Returns the browser crypto object.
Gets/sets the status bar text for the given window (Obsolete since Gecko 23).
Read-only: Returns the ratio between physical pixels and device independent pixels in the current display.
Read-only: Gets the arguments passed to the window (if it's a dialog box) at the time window.showModalDialog() was called.
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.
Synonym of window.personalbar
Read-only: Returns a reference to the document that the window contains.
Sets focus to the current window
Read-only: Returns the element in which the window is embedded, or null if the window is not embedded.
Read-only: Returns an array of the subframes in the current window.
This property indicates whether the window is displayed in full screen or not.
Gets the current computed CSS styles applied to an element
Gets the current computed CSS styles applied to an element
Required. The element to get the computed style for
Optional. A pseudo-element to get
A CSSStyleDeclaration object containing CSS declaration block of the element.
Returns a Selection object representing the range of text selected by the user
Unsupported since Gecko 13 (Firefox 13).
Unsupported since Gecko 13 (Firefox 13). Use Window.localStorage instead. Was: Multiple storage objects that are used for storing data across multiple pages (Obsolete since Gecko 13).
Read-only: Returns a reference to the history object.
Gets the height of the content area of the browser window including, if rendered, the horizontal scrollbar.
Gets the width of the content area of the browser window including, if rendered, the vertical scrollbar.
Read-only: Indicates whether a context is capable of using features that require secure contexts.
Read-only: Returns the number of frames in the window.
Read-only: Returns the number of frames in the window. See also window.frames.
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.
Read-only: Gets/sets the location, or current URL, of the window object.
Read-only: Returns the locationbar object, whose visibility can be toggled in the window.
Returns a MediaQueryList object representing the specified CSS media query string
Read-only: Returns the menubar object, whose visibility can be toggled in the window.
Returns the message manager object for this window.
Moves a window relative to its current position
Moves a window to the specified position
Read-only: The time in milliseconds since epoch at which the current animation cycle began.
Read-only: Returns the horizontal (X) coordinate of the top-left corner of the window's viewport, in screen coordinates.
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.
Read-only: Returns the vertical (Y) coordinate of the top-left corner of the window's viewport, in screen coordinates.
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.
Read-only: Returns the number of times the current document has been rendered to the screen in this window.
Read-only: 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.
Gets/sets the name of the window.
Read-only: Returns a reference to the navigator object.
Opens a new browser window
Opens a new dialog window.
Returns a reference to the window that opened this current window.
Read-only: Returns the orientation in degrees (in 90 degree increments) of the viewport relative to the device's natural orientation.
Read-only: Gets the height of the outside of the browser window.
Read-only: Gets the width of the outside of the browser window.
Read-only: An alias for window.scrollX.
Read-only: An alias for window.scrollY
Read-only: Returns a reference to the parent of the current window or subframe.
Read-only: Provides a hosting area for performance related attributes.
Read-only: Returns the personalbar object, whose visibility can be toggled in the window.
Formerly provided access to install and remove PKCS11 modules (Obsolete since Gecko 29)
The Window.postMessage() method safely enables cross-origin communication.
The Window.postMessage() method safely enables cross-origin communication. Normally, scripts on different pages are allowed to access each other if and only if the pages that executed them are at locations with the same protocol (usually both https), port number (443 being the default for https), and host (modulo Document.domain being set by both pages to the same value). window.postMessage() provides a controlled mechanism to circumvent this restriction in a way which is secure when properly used.
Data to be sent to the other window. The data 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.
Specifies what the origin of otherWindow must be for the event to be dispatched, either as the literal string "*" (indicating no preference) or as a URI. If at the time the event is scheduled to be dispatched the scheme, hostname, or port of otherWindow's document does not match that provided in targetOrigin, the event will not be dispatched; only if all three match will the event be dispatched. This mechanism provides control over where messages are sent.
Optional: Is a sequence of Transferable objects that are transferred with the message. The ownership of these objects is given to the destination side and they are no longer usable on the sending side.
Prints the content of the current window
The Window.prompt() displays a dialog with an optional message prompting the user to input some text.
The Window.prompt() displays a dialog with an optional message prompting the user to input some text.
is a string of text to display to the user. This parameter is optional and can be omitted if there is nothing to show in the prompt window.
is a string containing the default value displayed in the text input field. It is an optional parameter. Note that in Internet Explorer 7 and 8, if you do not provide this parameter, the string "undefined" is the default value.
a string containing the text entered by the user, or null.
The Window.prompt() displays a dialog with an optional message prompting the user to input some text.
The Window.prompt() displays a dialog with an optional message prompting the user to input some text.
a string containing the text entered by the user, or null.
Resizes the window by the specified pixels
Resizes the window to the specified width and height
The return value to be returned to the function that called window.showModalDialog() to display the window as a modal dialog.
Read-only: Returns a reference to the screen object associated with the window.
Read-only: Returns the horizontal distance of the left border of the user's browser from the left side of the screen.
Read-only: Returns the vertical distance of the top border of the user's browser from the top side of the screen.
Deprecated.
Deprecated. This method has been replaced by the scrollTo() method.
is the pixel along the horizontal axis of the document that you want displayed in the upper left.
is the pixel along the vertical axis of the document that you want displayed in the upper left.
Scrolls the document by the specified number of pixels
Scrolls the document by the specified number of pixels
is the offset in pixels to scroll horizontally.
is the offset in pixels to scroll vertically.
Read-only: The maximum offset that the window can be scrolled to horizontally, that is the document width minus the viewport width.
Read-only: The maximum offset that the window can be scrolled to vertically (i.e., the document height minus the viewport height).
Scrolls the document to the specified coordinates
Scrolls the document to the specified coordinates
is the pixel along the horizontal axis of the document that you want displayed in the upper left.
is the pixel along the vertical axis of the document that you want displayed in the upper left.
Read-only: Returns the number of pixels that the document has already been scrolled horizontally.
Read only: Returns the number of pixels that the document has already been scrolled vertically.
Read-only: Returns the scrollbars object, whose visibility can be toggled in the window.
Read-only: Returns an object reference to the window object itself.
Read-only: Returns a reference to the session storage object used to store data that may only be accessed by the origin that created it.
Calls a function or evaluates an expression at specified intervals (in milliseconds)
Calls a function or evaluates an expression after a specified number of milliseconds
Read-only: Returns a reference to the window object of the sidebar.
Read-only: Returns a SpeechSynthesis object, which is the entry point into using Web Speech API speech synthesis functionality.
Gets/sets the text in the statusbar at the bottom of the browser.
Read-only: Returns the statusbar object, whose visibility can be toggled in the window.
Stops the window from loading
Returns a storage object for storing data within a single page session.
Read-only: Returns the toolbar object, whose visibility can be toggled in the window.
Read-only: Returns a reference to the topmost window in the window hierarchy.
Read-only: Returns a reference to the topmost window in the window hierarchy. This property is read only.
Read-only: Returns a reference to the current window.
Window object
https://developer.mozilla.org/en-US/docs/Web/API/Window