# class HTMLLinkElement

###

Module | khtml
Namespace | DOM
Class | HTMLLinkElement
Inherits | DOM::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.

### methods

- HTMLLinkElement ( )

  returns ctor

- HTMLLinkElement (other)

  returns ctor

  Argument | Type | Default
  --- | --- | ---
  other | DOM.HTMLLinkElement |

- HTMLLinkElement (other)

  returns ctor

  Argument | Type | Default
  --- | --- | ---
  other | DOM.Node |

- HTMLLinkElement (impl)

  returns ctor
  Not implemented

  Argument | Type | Default
  --- | --- | ---
  impl | HTMLLinkElementImpl |

- charset ( )

  returns DOM.DOMString

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

- disabled ( )

  returns bool

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

- href ( )

  returns DOM.DOMString

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

- hreflang ( )

  returns DOM.DOMString

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

- media ( )

  returns DOM.DOMString

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

- rel ( )

  returns DOM.DOMString

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

- rev ( )

  returns DOM.DOMString

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

- setCharset (a0)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  a0 | DOM.DOMString |

  see charset

- setDisabled (a0)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  a0 | bool |

  see disabled

- setHref (a0)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  a0 | DOM.DOMString |

  see href

- setHreflang (a0)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  a0 | DOM.DOMString |

  see hreflang

- setMedia (a0)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  a0 | DOM.DOMString |

  see media

- setRel (a0)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  a0 | DOM.DOMString |

  see rel

- setRev (a0)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  a0 | DOM.DOMString |

  see rev

- setTarget (a0)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  a0 | DOM.DOMString |

  see target

- setType (a0)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  a0 | DOM.DOMString |

  see type

- sheet ( )

  returns DOM.StyleSheet

  Introduced in DOM Level 2 This method is from the LinkStyle interface

  The style sheet.

- target ( )

  returns DOM.DOMString

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

- type ( )

  returns DOM.DOMString

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