FileDocCategorySizeDatePackage
HTMLAnchorElement.javaAPI DocJava SE 5 API3421Fri Aug 26 14:58:40 BST 2005org.w3c.dom.html

HTMLAnchorElement

public interface HTMLAnchorElement implements HTMLElement
The anchor element. See the A element definition in HTML 4.0.

See also the Document Object Model (DOM) Level 2 Specification.

Fields Summary
Constructors Summary
Methods Summary
public voidblur()
Removes keyboard focus from this element.

public voidfocus()
Gives keyboard focus to this element.

public java.lang.StringgetAccessKey()
A single character access key to give access to the form control. See the accesskey attribute definition in HTML 4.0.

public java.lang.StringgetCharset()
The character encoding of the linked resource. See the charset attribute definition in HTML 4.0.

public java.lang.StringgetCoords()
Comma-separated list of lengths, defining an active region geometry. See also shape for the shape of the region. See the coords attribute definition in HTML 4.0.

public java.lang.StringgetHref()
The URI of the linked resource. See the href attribute definition in HTML 4.0.

public java.lang.StringgetHreflang()
Language code of the linked resource. See the hreflang attribute definition in HTML 4.0.

public java.lang.StringgetName()
Anchor name. See the name attribute definition in HTML 4.0.

public java.lang.StringgetRel()
Forward link type. See the rel attribute definition in HTML 4.0.

public java.lang.StringgetRev()
Reverse link type. See the rev attribute definition in HTML 4.0.

public java.lang.StringgetShape()
The shape of the active area. The coordinates are given by coords . See the shape attribute definition in HTML 4.0.

public intgetTabIndex()
Index that represents the element's position in the tabbing order. See the tabindex attribute definition in HTML 4.0.

public java.lang.StringgetTarget()
Frame to render the resource in. See the target attribute definition in HTML 4.0.

public java.lang.StringgetType()
Advisory content type. See the type attribute definition in HTML 4.0.

public voidsetAccessKey(java.lang.String accessKey)

public voidsetCharset(java.lang.String charset)

public voidsetCoords(java.lang.String coords)

public voidsetHref(java.lang.String href)

public voidsetHreflang(java.lang.String hreflang)

public voidsetName(java.lang.String name)

public voidsetRel(java.lang.String rel)

public voidsetRev(java.lang.String rev)

public voidsetShape(java.lang.String shape)

public voidsetTabIndex(int tabIndex)

public voidsetTarget(java.lang.String target)

public voidsetType(java.lang.String type)