Help Center

Local Navigation

Object: HTMLLinkElement

Availability

BlackBerry® Device Software version 4.6 or later

Extends

HTMLElement

The HTMLLinkElement object represents a <link> element in an HTML document.

The <link> element specifies an external reference to another document.

HTMLLinkElement properties

Property name

Type

Description

Status

Support level

Availability

charset

DOMString

Specifies the character encoding used in the referenced document; the value must be the name of a standard character set.

writable

DOM 2 HTML

4.6 or later

disabled

boolean

When true, indicates that this link is disabled.

writable

DOM 2 HTML

4.6 or later

href

DOMString

Specifies the target of the link.

writable

DOM 2 HTML

4.6 or later

hreflang

DOMString

Specifies the base language of the target document.

writable

DOM 2 HTML

4.6 or later

media

DOMString

Specifies the destination medium for the link.

writable

DOM 2 HTML

4.6 or later

rel

DOMString

Specifies the relationship between the current page and the referenced document. For example, "stylesheet".

writable

DOM 2 HTML

4.6 or later

rev

DOMString

Describes a link relationship from the referenced target document to the source document.

writable

DOM 2 HTML

4.6 or later

sheet

StyleSheet

The StyleSheet object associated with the element.

read only

DOM 2 Style

4.6 or later

target

DOMString

Specifies where the target document will be opened. The value can be the id attribute of the target frame, or can have one of the following special values:

  • _blank: Default. The document in a new window.
  • _self: The document opens in the same frame as the image map that was clicked.
  • _parent: The document opens in the parent frameset.
  • _top: The document opens in the full window.

writable

DOM 2 HTML

4.6 or later

type

DOMString

Specifies the MIME type of the target document.

writable

DOM 2 HTML

4.6 or later


Was this information helpful? Send us your comments.