Top Description Methods
org.w3c.dom.html

public Interface HTMLAnchorElement

extends HTMLElement

The anchor element. See the A element definition in HTML 4.0.

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

Since
1.4, DOM Level 2

Method Summary

Modifier and TypeMethod and Description
public void
blur()

Removes keyboard focus from this element.

public void
focus()

Gives keyboard focus to this element.

public String
getAccessKey()

A single character access key to give access to the form control.

public String
getCharset()

The character encoding of the linked resource.

public String
getCoords()

Comma-separated list of lengths, defining an active region geometry.

public String
getHref()

The URI of the linked resource.

public String
getHreflang()

Language code of the linked resource.

public String
getName()

Anchor name.

public String
getRel()

Forward link type.

public String
getRev()

Reverse link type.

public String
getShape()

The shape of the active area.

public int
getTabIndex()

Index that represents the element's position in the tabbing order.

public String
getTarget()

Frame to render the resource in. See the target attribute definition in HTML 4.0.

public String
getType()

Advisory content type.

public void
setAccessKey(String accessKey)

public void
setCharset(String charset)

public void
setCoords(String coords)

public void
public void
setHreflang(String hreflang)

public void
public void
public void
public void
public void
setTabIndex(int tabIndex)

public void
setTarget(String target)

public void
Inherited from org.w3c.dom.html.HTMLElement:
getClassNamegetDirgetIdgetLanggetTitlesetClassNamesetDirsetIdsetLangsetTitle

Method Detail

blurback to summary
public void blur()

Removes keyboard focus from this element.

focusback to summary
public void focus()

Gives keyboard focus to this element.

getAccessKeyback to summary
public String getAccessKey()

A single character access key to give access to the form control. See the accesskey attribute definition in HTML 4.0.

getCharsetback to summary
public String getCharset()

The character encoding of the linked resource. See the charset attribute definition in HTML 4.0.

getCoordsback to summary
public String getCoords()

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.

getHrefback to summary
public String getHref()

The URI of the linked resource. See the href attribute definition in HTML 4.0.

getHreflangback to summary
public String getHreflang()

Language code of the linked resource. See the hreflang attribute definition in HTML 4.0.

getNameback to summary
public String getName()

Anchor name. See the name attribute definition in HTML 4.0.

getRelback to summary
public String getRel()

Forward link type. See the rel attribute definition in HTML 4.0.

getRevback to summary
public String getRev()

Reverse link type. See the rev attribute definition in HTML 4.0.

getShapeback to summary
public String getShape()

The shape of the active area. The coordinates are given by coords . See the shape attribute definition in HTML 4.0.

getTabIndexback to summary
public int getTabIndex()

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

getTargetback to summary
public String getTarget()

Frame to render the resource in. See the target attribute definition in HTML 4.0.

getTypeback to summary
public String getType()

Advisory content type. See the type attribute definition in HTML 4.0.

setAccessKeyback to summary
public void setAccessKey(String accessKey)
setCharsetback to summary
public void setCharset(String charset)
setCoordsback to summary
public void setCoords(String coords)
setHrefback to summary
public void setHref(String href)
setHreflangback to summary
public void setHreflang(String hreflang)
setNameback to summary
public void setName(String name)
setRelback to summary
public void setRel(String rel)
setRevback to summary
public void setRev(String rev)
setShapeback to summary
public void setShape(String shape)
setTabIndexback to summary
public void setTabIndex(int tabIndex)
setTargetback to summary
public void setTarget(String target)
setTypeback to summary
public void setType(String type)