The window object is created for each window that appears on the screen.
The window object differs from the document object in that the window object contains the document object.
The window object enables you to add more interactivity to your script.
Below is a list of the properties of the window object.
|closed||Holds the value based on whether or not a window has been closed.|
|defaultStatus||Defines the default message displayed in the status bar.|
|document||A reference to the document object of the window.|
|frames||An array that represents all of the frames in a given window.|
|history||Provides information on the browser history of the current window.|
|innerHeight||Returns the height in pixels of the viewable area within the window.|
|innerWidth||Returns the width in pixels of the viewable area within the window.|
|lenght||Holds a value equal to the number of frames in the window.|
|location||Holds the value of the current URL of the window.|
|name||Enables a window to be named.|
|opener||Refers to the window that opened another window.|
|outerHeight||Returns the width in pixels of the entire browser window.|
|outerWidth||Returns the width in pixels of the entire browser window.|
|parent||Refers to the frame set that contains the current frame.|
|screen.availWidth||Returns the available width of the browser window in pixels.|
|screen.availHeight||Returns the available height of the browser window in pixels.|
|screen.colorDepth||Returns the color depth of the screen in bits per pixel.|
|screen.height||Returns the total height of the screen in pixels.|
|screen.pixelDepth||Returns the bit depth of the screen in bits per pixel.|
|screen.width||Returns the total width of the screen in pixels.|
|self||Provides another way to reference the current window.|
|status||Enables a message to be placed in the status bar; overrides |
|top||A reference to the top window containing a frame, frame set or nested frame set.|
|window||A reference to the current window.|