25.35. The Window Object

The window object describes a browser window or frame. The current window is available through the window reference, but you can omit that prefix when accessing its properties and methods. So, for instance, you can refer to the Document associated with the current window through window.document or simply by document. Similarly, to transfer the current window to a new page, you can set the window.location property or simply set location.

Properties

closed This Boolean property specifies whether the window has been closed. It is read-only.

defaultStatus This string specifies the default string that should appear in the status line. It is read/write.

document This property refers to the Document object contained in the window. ...

Get Core Web Programming, Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.