Window Object
The window object represents an open window in a browser.
If a document contain frames (<iframe> tags), the browser creates one window object for the
HTML document, and one additional window object for each frame.
Closed: Returns a boolean true if a window is closed. (window.close)
Console: Returns the Console Object for the window.
The console object provides access to the browser's debugging console.
The console object is a property of the window object.
The console object is accessed with:
window.console or just console
Document: Returns the Document object for the window.
When an HTML document is loaded into a web browser, it becomes a document object.
The document object is the root node of the HTML document.
The document object is a property of the window object.
The document object is accessed with:
window.document or just document
frameElement: Returns the frame in which the window runs.
The frameElement property returns null if the window does not run in a frame.
Frames: Returns all window objects running in the window.
The frames property returns an array with all window objects in the window.
The windows can be accessed by index numbers. The first index is 0.
Length: Returns the number of <iframe> elements in the current window
The windows can be accessed by index numbers. The first index is 0.
Name: Sets or returns the name of a window
Opener: Returns a reference to the window that created the window
outerHeigh: Returns the height of the browser window, including toolbars/scrollbars
outerWidth: Returns the width of the browser window, including toolbars/scrollbars
parent: Returns the parent window of the current window
top: Returns the topmost browser window