JavaScript: The Definitive Guide

Previous Chapter 21
JavaScript Reference
Next
 

Window.window Property

Name

Window.window Property---the window itself

Availability

Navigator 2.0, Internet Explorer 3.0

Synopsis

window.window

Description

The window property is identical to the self property; it contains a reference to the Window object specified by window. That is, window.window is identical to window itself. Because a reference to the current top-level window or frame is implicit in all JavaScript expressions, the window in the above expressions can be omitted and you can simply use window to refer to the current window.

Usage

The window property (and its synonym, self) provides a way to explicitly refer to the current window or frame when necessary, or when convenient for code clarity. To open a new window in an event handler, for example, it is necessary to use window.open(), because open() by itself would be confused with the Document.open() method.

See Also

"Window", "Window.self"


Previous Home Next
Window.top Book Index JavaScript Resources on the Internet

HTML: The Definitive Guide CGI Programming JavaScript: The Definitive Guide Programming Perl WebMaster in a Nutshell
Hosted by uCoz