name (HTML attribute)

Spec
Depr. Version
Yes HTML 2

Syntax

name="unique name reference"

Description

The name attribute is one method for referencing an applet element by JavaScript (the alternative, forward-thinking method is to reference by the id (coming soon!) attribute).

Example

The name attribute provides a way of referencing the applet:
<applet code="ticker.class" name="stockticker">
</applet>

Value

Any name that the developer chooses (not containing spaces or special characters).

Compatibility

It causes no compatibility issues, and has excellent support across all tested browsers.

User-contributed notes

There are no comments yet.

Related Products