HTMLAnchorElement Interface
The HTMLAnchorElement Interface represents the anchor element.
IDL Definition
Interface HTMLAnchorElement : HTMLElement {
attribute DOMString accessKey;
attribute DOMString charset;
attribute DOMString coords;
attribute DOMString href;
attribute DOMString hreflang;
attribute DOMString name;
attribute DOMString rel;
attribute DOMString rev;
attribute DOMString shape;
attribute DOMString tabIndex;
attribute DOMString target;
attribute DOMString type;
void blur();
void focus();
};
Semantic Requirements
- The accessKey attribute is a single character access key to give access to the form control.
- The charset attribute indicates the character encoding of the linked resource.
- The coords attribute is a comma-separated list of lengths, defining an active region geometry.
- The href attribute contains the URI of the linked resource.
- The hreflang attribute contains the language code of the linked resource.
- The name attribute contains the anchor name.
- The rel attribute contains the forward link type.
- The rev attribute contains the reverse link type.
- The shape attribute contains the shape of the active area.
- The tabIndex attribute contains an index that represents the element's position in the tabbing order.
- The target attribute contains the frame to render the source in.
- The type attribute contains the advisory content model.
Methods
- The blur() method removes keyboard focus from this element.
- The focus method gives keyboard focus to this element.
If you have comments or suggestions, email me at mbrady@nist.gov