HTML DOM Link Object

« Previous Chapter Next Reference »

Link Object

The Link object represents an HTML link element.

A link element defines the relationship between two linked documents.

The link element is defined in the head section of an HTML document.

Link Object Properties

W3C: W3C Standard.

Property Description W3C
charset Sets or returns the character encoding of the target URL Yes
disabled Sets or returns whether or not the target URL should be disabled Yes
href Sets or returns the URL of a linked resource Yes
hreflang Sets or returns the base language of the target URL Yes
media Sets or returns on what device the document will be displayed Yes
name Sets or returns the name of a <link> element Yes
rel Sets or returns the relationship between the current document and the target URL Yes
rev Sets or returns the relationship between the target URL and the current document Yes
type Sets or returns the MIME type of the target URL Yes

Standard Properties, Methods, and Events

The Link object also supports the standard properties, methods, and events.

« Previous Chapter Next Reference »

Have Any Suggestion? We Are Waiting To Hear from YOU!

Your Query was successfully sent!