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.



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


if (my_window.closed == false)
    my_window.location = "";

This example makes sure the window named my_window has not been closed before sending a visitor to


FF, IE 3

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


FF, IE 3

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

Get The Book of JavaScript, 2nd Edition now with O’Reilly online learning.

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