Name

NAME — NN 2 IE 3 HTML 4

Synopsis

NAME=”elementIdentifier"

Optional

When links and forms must load their destination or returned documents into frames other than the one holding the link or form, those elements have TARGET attributes indicating which frame receives the new content. To direct such content to a frame, the frame must have a value assigned to its NAME attribute. That same value is assigned to the TARGET attribute of the A or FORM element. Client-side scripting also uses the frame’s name in building references to other frames or content in other frames. It is good practice to assign a unique identifying name to all frames.

Example

<FRAME NAME="navbar" SRC="nav.html">

Value

Case-sensitive identifier.

Default

None.

Object Model Reference

NN

[window.]frameName.name

[window.]frames[i].name

IE

[window.]frameName.name

[window.]frames[i].name

[window.]document.all.frameID.name

Get Dynamic HTML: The Definitive Reference 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.