

Window.pageYOffset Read onlyĪn alias for window.scrollY. Window.pageXOffset Read onlyĪn alias for window.scrollX. Gets the width of the outside of the browser window. Gets the height of the outside of the browser window. Returns a reference to the window that opened this current window. Returns a reference to the navigator object. See mozScreenPixelsPerCSSPixel for a conversion factor to adapt to screen pixels if needed. Returns the vertical (Y) coordinate of the top-left corner of the window's viewport, in screen coordinates. Window.mozInnerScreenY Read only Non-standard See mozScreenPixelsPerCSSPixel in nsIDOMWindowUtils for a conversion factor to adapt to screen pixels if needed. Returns the horizontal (X) coordinate of the top-left corner of the window's viewport, in screen coordinates. Window.mozInnerScreenX Read only Non-standard Returns the message manager object for this window. Returns the menubar object, whose visibility can be toggled in the window. Returns a reference to the local storage object used to store data that may only be accessed by the origin that created it. Returns the locationbar object, whose visibility can be toggled in the window. Gets/sets the location, or current URL, of the window object. Returns the number of frames in the window.

Returns a boolean indicating whether the current context is secure ( true) or not ( false). Gets the width of the content area of the browser window including, if rendered, the vertical scrollbar. Gets the height of the content area of the browser window including, if rendered, the horizontal scrollbar. Returns a reference to the history object.
WINDOWS UI BROWSER FULL
This property indicates whether the window is displayed in full screen or not. Returns an array of the subframes in the current window. Returns the element in which the window is embedded, or null if the window is not embedded. Returns an object with functions for adding external search providers to the browser. The Event object passed directly to event handlers should be used instead whenever possible. 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. Returns a reference to the document that the window contains. Returns the ratio between physical pixels and device independent pixels in the current display. Returns a reference to the CustomElementRegistry object, which can be used to register new custom elements and get information about previously registered custom elements. Returns a reference to the console object which provides access to the browser's debugging console. This property indicates whether the current window is closed or not. Window.clientInformation Read onlyĪn alias for Window.navigator. Note that properties which are objects (e.g., for overriding the prototype of built-in elements) are listed in a separate section below. This interface inherits properties from the EventTarget interface. Generally, anything that can't reasonably pertain to a tab pertains to the window instead. 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.
WINDOWS UI BROWSER CODE
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. Many of these are documented in the JavaScript Reference and the DOM Reference. However, the Window interface is a suitable place to include these items that need to be globally available.

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. The Window interface represents a window containing a DOM document the document property points to the DOM document loaded in that window.Ī window for a given document can be obtained using the faultView property.Ī global variable, window, representing the window in which the script is running, is exposed to JavaScript code. Non-standard Deprecated vrdisplaypresentchange.Non-standard Deprecated vrdisplaypointerunrestricted.Non-standard Deprecated vrdisplaypointerrestricted.Non-standard Deprecated vrdisplaydisconnect.Non-standard Deprecated vrdisplaydeactivate.Non-standard Deprecated vrdisplayconnect.Non-standard Deprecated vrdisplayactivate.Non-standard Deprecated showModalDialog().Non-standard Deprecated requestFileSystem().Non-standard convertPointFromPageToNode().Non-standard Deprecated applicationCache.
