Properties of the Window Object

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.

PropertyDescription
closedHolds the value based on whether or not a window has been closed.
defaultStatusDefines the default message displayed in the status bar.
documentA reference to the document object of the window.
framesAn array that represents all of the frames in a given window.
historyProvides information on the browser history of the current window.
innerHeightReturns the height in pixels of the viewable area within the window.
innerWidthReturns the width in pixels of the viewable area within the window.
lenghtHolds a value equal to the number of frames in the window.
locationHolds the value of the current URL of the window.
nameEnables a window to be named.
openerRefers to the window that opened another window.
outerHeightReturns the width in pixels of the entire browser window.
outerWidthReturns the width in pixels of the entire browser window.
parentRefers to the frame set that contains the current frame.
screen.availWidthReturns the available width of the browser window in pixels.
screen.availHeightReturns the available height of the browser window in pixels.
screen.colorDepthReturns the color depth of the screen in bits per pixel.
screen.heightReturns the total height of the screen in pixels.
screen.pixelDepthReturns the bit depth of the screen in bits per pixel.
screen.widthReturns the total width of the screen in pixels.
selfProvides another way to reference the current window.
statusEnables a message to be placed in the status bar; overrides defaultStatus.
topA reference to the top window containing a frame, frame set or nested frame set.
windowA reference to the current window.