Name

name — NN 4 IE n/a DOM n/a

Synopsis

Read-only

The identifier associated with a layer for use as the value assigned to TARGET attributes or as script references to the frame. If no value is explicitly assigned to the ID attribute, Navigator automatically assigns the NAME attribute value to the ID attribute.

Example

if (document.layers[2].name == "main") {
    ...
}

Value

Case-sensitive identifier that follows the rules of identifier naming: it may contain no whitespace, cannot begin with a numeral, and should avoid punctuation except for the underscore character.

Default

None.

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.