Anchor : HTMLElement
Return to: HTML DOM Level 0 index

A target for a hyperlink.

Platform Support

IE Mozilla Netscape Opera Chrome Safari
3.0+ 1.0+ 2.0+ 7.0+ 5.0+ 1.0+

Constructors

Constructor Action IE Mozilla Netscape Opera Chrome Safari
Creates a new instance of an Anchor.
Show Details 3.0+ 1.0+ 2.0+ 7.0+ 5.0+ 1.0+

Anchor() : Anchor

Creates a new instance of an Anchor.

Returns
Anchor

Visibility
internal

Properties

Property Action IE Mozilla Netscape Opera Chrome Safari
name : String
Name of the anchor.
Show Details 3.0+ 1.0+ 4.0+ 7.0+ 5.0+ 1.0+
Availability

W3C

text : String
Text of the anchor.
No Details no no 4.0+ 7.0+ no no

References

anchors[] property of the Document object|Link|HTMLAnchorElement

Availability

JavaScript 1.2|W3C

text_javascript aptana_docs