APIdia Launch Partner
Top Description Methods
org.w3c.dom.html

public Interface HTMLLinkElement

extends HTMLElement

The LINK element specifies a link to an external resource, and defines this document's relationship to that resource (or vice versa). See the LINK element definition in HTML 4.0 (see also the LinkStyle interface in the module).

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

Since
1.4, DOM Level 2

Method Summary

Modifier and TypeMethod and Description
public String
getCharset()

The character encoding of the resource being linked to.

public boolean
getDisabled()

Enables/disables the link.

public String
getHref()

The URI of the linked resource.

public String
getHreflang()

Language code of the linked resource.

public String
getMedia()

Designed for use with one or more target media.

public String
getRel()

Forward link type.

public String
getRev()

Reverse link type.

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
setCharset(String charset)

public void
setDisabled(boolean disabled)

public void
public void
setHreflang(String hreflang)

public void
public void
public void
public void
setTarget(String target)

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

Method Detail

getCharsetback to summary
public String getCharset()

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

getDisabledback to summary
public boolean getDisabled()

Enables/disables the link. This is currently only used for style sheet links, and may be used to activate or deactivate style sheets.

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.

getMediaback to summary
public String getMedia()

Designed for use with one or more target media. See the media 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.

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.

setCharsetback to summary
public void setCharset(String charset)
setDisabledback to summary
public void setDisabled(boolean disabled)
setHrefback to summary
public void setHref(String href)
setHreflangback to summary
public void setHreflang(String hreflang)
setMediaback to summary
public void setMedia(String media)
setRelback to summary
public void setRel(String rel)
setRevback to summary
public void setRev(String rev)
setTargetback to summary
public void setTarget(String target)
setTypeback to summary
public void setType(String type)