JavaScript: The Definitive Guide

Previous Chapter 21
JavaScript Reference
Next
 

Window.name Property

Name

Window.name Property---the name of a window

Availability

Navigator 2.0, Internet Explorer 3.0; enhanced in Navigator 3.0.

Synopsis

window.name

Description

The name property is a string that specifies the name of window, which may be any top-level window or frame. This property is read-only in Navigator 2.0 and Internet Explorer 3.0, and is read/write in Navigator 3.0. The name of a top-level window is initially specified by the name argument of the Window.open() method. The name of a frame is initially specified by the NAME attribute of the <FRAME> HTML tag.

The name of a top-level window or frame may be used as the value of a TARGET attribute of an <A> or <FORM> tag. Using the TARGET attribute in this way specifies that the hyperlinked document or the results of form submission should be displayed in the named window.

The initial window opened by Navigator, and any windows opened with the New Web Browser menu item initially have no name (i.e., name ==""), and so these windows cannot be addressed with a TARGET attribute from a separate top-level window. In Navigator 3.0, you can set the name attribute to remedy this situation.

See Also

"Form", "Frame", "Link", "Window"


Previous Home Next
Window.Math Book Index Window.navigate()

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