Name

NAME — NN 2 IE 3 HTML n/a

Synopsis

NAME=”elementIdentifier"

Optional

If you are scripting a plugin (especially in Navigator via LiveConnect), it is usually more convenient to create a reference to the embedded element by using a unique name you assign to the item. Thus, if you edit the page and move or delete multiple EMBED elements on the page, you do not have to worry about adjusting index values to array-style references (document.embeds[i]).

Example

<EMBED NAME="jukebox" SRC="jazz.aif" HEIGHT=15 WIDTH=25></EMBED>

Value

Case-sensitive identifier.

Default

None.

Object Model Reference

IE

[window.]document.embeds[i].name

[window.]document.elementID.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.