Returns a reference to a DOMMatrix object, which represents 4x4 matrices, suitable for 2D and 3D operations. 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. for overriding the prototype of built-in elements) are listed in a separate section below. Note that properties which are objects (e.g. This interface inherits properties from the EventTarget interface and implements properties from the WindowOrWorkerGlobalScope and WindowEventHandlers mixins. 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.
Window api vba 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.