Platform Support
| Mozilla | Chrome | Safari | Opera | IE | Netscape | 1.0+ | 5.0+ | 1.0+ | no | 3.0+ | 4.0+ |
|---|
Constructors
| Constructor | Action | Mozilla | Chrome | Safari | Opera | IE | Netscape | ||
|---|---|---|---|---|---|---|---|---|---|
|
HTMLLinkElement Constructor() : HTMLLinkElement
Creates an instance of the HTMLLinkElement.
|
Show Details | 1.0+ | 5.0+ | 1.0+ | no | 3.0+ | 4.0+ | ||
HTMLLinkElement() : HTMLLinkElementCreates an instance of the HTMLLinkElement. Returns
|
|||||||||
Properties
| Property | Action | Mozilla | Chrome | Safari | Opera | IE | Netscape |
|---|---|---|---|---|---|---|---|
|
disabled
: Boolean
Specifies whether the link element is disabled.
|
Show Details | 1.0+ | 5.0+ | 1.0+ | no | 3.0+ | 4.0+ |
|
|||||||
|
href
: String
Specifies the destination of the link elements.
|
Show Details | 1.0+ | 5.0+ | 1.0+ | no | 3.0+ | 4.0+ |
|
|||||||
|
rel
: String
Specifies the types of link indicated.
|
Show Details | 1.0+ | 5.0+ | 1.0+ | no | 3.0+ | 4.0+ |
|
|||||||
|
relList
: DOMTokenList
Specifies a list of the rel attribute.
|
Show Details | 1.0+ | 5.0+ | 1.0+ | no | 3.0+ | 4.0+ |
|
|||||||
|
media
: String
Specifies which media the resource applies to.
|
Show Details | 1.0+ | 5.0+ | 1.0+ | no | 3.0+ | 4.0+ |
|
|||||||
|
hreflang
: String
Specifies the language of the linked resource.
|
Show Details | 1.0+ | 5.0+ | 1.0+ | no | 3.0+ | 4.0+ |
|
|||||||
|
type
: String
Specifies the MIME type of the linked resource.
|
Show Details | 1.0+ | 5.0+ | 1.0+ | no | 3.0+ | 4.0+ |
|
|||||||
|
sizes
: DOMSettableTokenList
Specifies the sizes for the assiciated icon elements.
|
Show Details | 1.0+ | 5.0+ | 1.0+ | no | 3.0+ | 4.0+ |
|
|||||||
Inherited Functions
| Method | Action | Mozilla | Chrome | Safari | Opera | IE | Netscape | |||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
getElementsByClassName(String classNames) : NodeList
Returns a NodeList containing all the
Element nodes with the specified classNames. |
Show Details | 1.9+ | 5.0+ | 3.1+ | 9.51+ | no | no | |||||
|
Parameters
Returns
|
||||||||||||
References
Availability
JavaScript 1.2|WhatWG