In a browser environment, a window is considered a global area.
The window object implements the Window interface, which, in turn, inherits from the AbstractView interface.
Some additional global functions, namespace objects, interfaces, and constructors that are not usually associated with this window but are available on it are listed in the JavaScript Reference and DOM Reference.
The window object is the window itself.
The window document property points to the DOM document loaded into this window.
The window for this document can be obtained using the document.defaultView property.
In a tabbed browser, such as Firefox, each tab contains its own window object (and if you write the extension, the browser window is also a separate window.
That is, the window object is not shared between tabs in the same window. Some methods, namely window.resizeTo and window.resizeBy apply to the whole window, and not to the specific tab to which the window object belongs. As a rule, everything that cannot reasonably relate to a tab refers to a window.
adeneo
source share