The window object represents a window containing a DOM document; the document property points to the DOM document loaded in that window. A window for a given document can be obtained using the document.defaultView property.
The Window.close() method closes the current window, or the window on which it was called.
Returns a Selection object representing the range of text selected by the user or the current position of the caret.
Height (in pixels) of the browser window viewport including, if rendered, the horizontal scrollbar.
The Window.location read-only property returns a Location object with information about the current location of the document.
Loads a resource into either a new browsing context (such as a window) or one that already exists, depending on the specified parameters.
This method is currently not working, but you can use:
Scrolls the document by the given number of lines.
The Window.showModalDialog() creates and displays a modal dialog box containing a specified HTML document.
The Window.sizeToContent() method sizes the window according to its content. In order for it to work, the DOM content should be loaded when this function is called, for example once the DOMContentLoaded event has been thrown.
The WindowEventHandlers.onbeforeunload event handler property contains the code executed when the beforeunload is sent. This event fires when a window is about to unload its resources. The document is still visible and the event is still cancelable.
An event handler for the popstate event on the window.
An event handler for abort events sent to the window. (Not available with Firefox 2 or Safari)
The Window.alert() method displays an alert dialog with the optional specified content and an OK button.
Returns a reference to the application cache object for the window.