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

  1. The accessKey attribute is a single character access key to give access to the form control.
  2. The charset attribute indicates the character encoding of the linked resource.
  3. The coords attribute is a comma-separated list of lengths, defining an active region geometry.
  4. The href attribute contains the URI of the linked resource.
  5. The hreflang attribute contains the language code of the linked resource.
  6. The name attribute contains the anchor name.
  7. The rel attribute contains the forward link type.
  8. The rev attribute contains the reverse link type.
  9. The shape attribute contains the shape of the active area.
  10. The tabIndex attribute contains an index that represents the element's position in the tabbing order.
  11. The target attribute contains the frame to render the source in.
  12. The type attribute contains the advisory content model.
  13. Methods

  14. The blur() method removes keyboard focus from this element.
  15. The focus method gives keyboard focus to this element.

If you have comments or suggestions, email me at mbrady@nist.gov