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 | ||
|---|---|---|---|---|---|---|---|---|---|
|
Anchor Constructor() : Anchor
Creates a new instance of an Anchor.
|
Show Details | 3.0+ | 1.0+ | 2.0+ | 7.0+ | 5.0+ | 1.0+ | ||
Anchor() : AnchorCreates a new instance of an Anchor. Returns
|
|||||||||
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+ |
|
|||||||
|
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