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
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access