O'Reilly logo

The Book of JavaScript, 2nd Edition by thau!

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required