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.

Add a note

To post a note on this topic, please log in with your SitePoint username and password. If you don't have an account yet, you can create a new account for free.

Related Products