22.1.1. Window Object
The window object is the top-level object for an XHTML document. It includes properties and methods to manipulate the user agent window. The window object is also the top-level object for most other objects.
Using the window object, you can not only work with the current user agent window, but you can also open and work with new windows. The following code will open a new window displaying a specific document:
NewWin = window.open("example.htm","newWindow", "width=400,height=400,scrollbars=no,resizable=no");
The open method takes three arguments: a URL of the document to open in the window, the name of the new window, and options for the window. For example, the preceding code opens a window named newWindow containing the document example.htm and will be 400 pixels square, be nonresizable, and have no scrollbars.
The options supported ...