Name

NAME — NN 2 IE 3 HTML 3.2

Synopsis

NAME=”elementIdentifier"

Optional

If you are scripting an applet, it is usually more convenient to create a reference to the applet by using a unique name you assign to the applet. Then, if you edit the page and move or delete multiple applets on the page, you do not have to worry about adjusting index values to array-style references. In IE 4, you have the option of omitting the NAME attribute and using the ID attribute value in script references to the applet object.

Example

<APPLET NAME="clock2" CODE="ScriptableClock.class" WIDTH=400 HEIGHT=50>
</APPLET>

Value

Case-sensitive identifier.

Default

None.

Object Model Reference

IE

[window.]document.applets[i].name

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