This corresponds to the NAME attribute of the <A> HTML tag.


DOM level - 1
JavaScript - 1.2
JScript - 3.0
Internet Explorer - 4.0
Netscape - 4.0
Property/method value type:String primitive
JavaScript = aName
HTML syntax:<A NAME="aName">
Argument list:aNameA new name for the anchor.

The value of this property is defined by the NAME tag attribute in the HTML that describes the document. Without the NAME attribute, the anchor object does not get added to the anchors[] array.

This name property contains a case sensitive value. It is case sensitive because it can be used as a value in one of the document hierarchies to locate an object.

The example should present the word "EXAMPLE" on all compliant browsers.


Example code:

   <A NAME="EXAMPLE" HREF="">Click here</A>

See also:Anchor object, AnchorArray.length, Document.anchors[], NAME="...", String.anchor(),