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

HTMLLinkElement

public interface HTMLLinkElement implements 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.

Fields Summary
Constructors Summary
Methods Summary
public java.lang.StringgetCharset()
The character encoding of the resource being linked to. See the charset attribute definition in HTML 4.0.

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

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.StringgetMedia()
Designed for use with one or more target media. See the media 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.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 voidsetCharset(java.lang.String charset)

public voidsetDisabled(boolean disabled)

public voidsetHref(java.lang.String href)

public voidsetHreflang(java.lang.String hreflang)

public voidsetMedia(java.lang.String media)

public voidsetRel(java.lang.String rel)

public voidsetRev(java.lang.String rev)

public voidsetTarget(java.lang.String target)

public voidsetType(java.lang.String type)