public interface

HTMLLinkElement

implements HTMLElement
org.w3c.dom.html.HTMLLinkElement

Class Overview

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.

Summary

[Expand]
Inherited Constants
From interface org.w3c.dom.Node
Public Methods
abstract String getCharset()
The character encoding of the resource being linked to.
abstract boolean getDisabled()
Enables/disables the link.
abstract String getHref()
The URI of the linked resource.
abstract String getHreflang()
Language code of the linked resource.
abstract String getMedia()
Designed for use with one or more target media.
abstract String getRel()
Forward link type.
abstract String getRev()
Reverse link type.
abstract String getTarget()
Frame to render the resource in.
abstract String getType()
Advisory content type.
abstract void setCharset(String charset)
abstract void setDisabled(boolean disabled)
abstract void setHref(String href)
abstract void setHreflang(String hreflang)
abstract void setMedia(String media)
abstract void setRel(String rel)
abstract void setRev(String rev)
abstract void setTarget(String target)
abstract void setType(String type)
[Expand]
Inherited Methods
From interface org.w3c.dom.Element
From interface org.w3c.dom.Node
From interface org.w3c.dom.html.HTMLElement

Public Methods

public abstract String getCharset ()

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

public abstract 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.

public abstract String getHref ()

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

public abstract String getHreflang ()

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

public abstract String getMedia ()

Designed for use with one or more target media. See the media attribute definition in HTML 4.0.

public abstract String getRel ()

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

public abstract String getRev ()

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

public abstract String getTarget ()

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

public abstract String getType ()

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

public abstract void setCharset (String charset)

public abstract void setDisabled (boolean disabled)

public abstract void setHref (String href)

public abstract void setHreflang (String hreflang)

public abstract void setMedia (String media)

public abstract void setRel (String rel)

public abstract void setRev (String rev)

public abstract void setTarget (String target)

public abstract void setType (String type)