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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.