LINK | NN n/a IE 4 DOM 1 | ||
The LINK object reflects the LINK element. Note that many of the properties listed here are not available for scripting in the object unless their corresponding attributes are set initially in the HTML tag. This includes: href, rel, rev, and type. The media property is not available in the Macintosh version of IE 4. Fortunately, there is little need to script this object, since the impact of the LINK element is felt by the browser as the document loads. | |||
HTML Equivalent<LINK> | |||
Object Model Reference
|
disabled | NN n/a IE 4 DOM n/a | ||
Read/Write | |||
Whether information from the LINK element should be applied. For example, if the LINK element loads an external style sheet, you can disable the style sheet from a script by setting the LINK object's disabled property to true. | |||
Exampledocument.all.styleLink.disabled = true | |||
Value Boolean value: true | false. | |||
|
href | NN n/a IE 4 DOM 1 | ||
Read/Write | |||
The URL specified by the element's HREF attribute. For example, to swap external style sheets after the page has loaded, assign an alternate style sheet file to the href property. This property is read-only in IE 4/Macintosh. | |||
Exampledocument.all.styleLink.href = "altStyles.css" | |||
Value String of complete or relative URL. | |||
|
media | NN n/a IE 4 DOM 1 | ||
Read/Write | |||
The intended output device for the content of the destination document pointed to by the HREF attribute. The media property looks forward to the day when browsers are able to tailor content to specific kinds of devices such as pocket computers, text-to-speech digitizers, or fuzzy television sets. This property is not available in IE 4/Macintosh. | |||
Exampledocument.all.link3.media = "print" | |||
Value Any one of the following constant values as a string: all | print | screen. | |||
|
readyState | NN n/a IE 4 DOM n/a | ||
Read-only | |||
Returns the current download status of the embedded content. This property provides a more granular way of testing whether a particular downloadable element is ready to be run or scripted instead of the onLoad event handler for the entire document. As the value of this property changes during loading, the system fires an onReadyStateChange event. | |||
Exampleif (document.all.myLink.readyState != "complete") { } | |||
Value One of the following values (as strings): complete | interactive | loading | uninitialized. Some elements may allow the user to interact with partial content, in which case the property may return interactive until all loading has completed. | |||
|
rel | NN n/a IE 4 DOM 1 | ||||||||||||||||
Read/Write | |||||||||||||||||
Defines the relationship between the current element and the
destination of the link. Also known as a forward
link, not to be confused in any way with the destination
document whose address is defined by the HREF
attribute. This property is not exploited yet in Internet Explorer 4,
but you can treat the attribute as a kind of parameter to be checked
and/or modified under script control. See the discussion of the
A element's REL attribute
in | |||||||||||||||||
Value Case-insensitive, space-delimited list of HTML 4.0 standard link types (as a single string) applicable to the element. Sanctioned link types are:
| |||||||||||||||||
|
rev | NN n/a IE 4 DOM 1 | ||
Read/Write | |||
Defines the relationship between the current element and the
destination of the link. Also known as a reverse
link. This property is not exploited yet in Internet
Explorer 4, but you can treat the attribute as a kind of parameter to
be checked and/or modified under script control. See the discussion
of the A element's REV
attribute in | |||
Value Case-insensitive, space-delimited list of HTML 4.0 standard link types (as a single string) applicable to the element. See the rel property for sanctioned link types. | |||
|
type | NN n/a IE 4 DOM n/a | ||
Read/Write | |||
An advisory MIME type declaration about the data being loaded from an external source. For example, an external style sheet would be text/css. This information is usually set in the element tag's TYPE attribute. | |||
Exampleif (document.all.myStyle.type == "text/css") { ... } | |||
Value String. | |||
|