window

The window object is either a browser window or a frame. Many methods of the window object have been listed in this appendix already. Those are left out of the description of the window object.

Properties

closed

FF, IE 4

Read-only: true if a window has been closed and false if it is still open. The window referenced is generally created using the window.open() method.

Example:

if (my_window.closed == false)
{
    my_window.location = "http://www.hits.org";
}

This example makes sure the window named my_window has not been closed before sending a visitor to http://www.hits.org.

defaultStatus

FF, IE 3

Read-only: Browser's default message in the status area of the window

document

FF, IE 3

Read-only: document object of the window. See "Document" on page 421 ...

Get The Book of JavaScript, 2nd 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.