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

Availability

charset

String

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

writable

4.6 or later

disabled

boolean

When true, indicates that this link is disabled.

writable

4.6 or later

href

String

Specifies the target of the link.

writable

4.6 or later

hreflang

String

Specifies the base language of the target document.

writable

4.6 or later

media

String

Specifies the destination medium for the link.

writable

4.6 or later

rel

String

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

writable

4.6 or later

rev

String

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

writable

4.6 or later

sheet

StyleSheet

The StyleSheet object associated with the element.

read only

4.6 or later

target

String

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

4.6 or later

type

String

Specifies the MIME type of the target document.

writable

4.6 or later

Previous topic: HTMLIElement properties

Was this information helpful? Send us your comments.