LINKNN 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
IE [window.]document.all.elementID
disabledNN 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.

 
Example
document.all.styleLink.disabled = true
 
Value
Boolean value: true | false.
 
Default false
hrefNN 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.

 
Example
document.all.styleLink.href = "altStyles.css"
 
Value
String of complete or relative URL.
 
Default None.
mediaNN 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.

 
Example
document.all.link3.media = "print"
 
Value
Any one of the following constant values as a string: all | print | screen.
 
Default all
readyStateNN 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.

 
Example
if (document.all.myLink.readyState != "complete") {
    statements for alternate handling
}
 
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.
 
Default None.
relNN 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 for a glimpse of how this property may be used in the future.

 
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:
alternate contents index start
appendix copyright next stylesheet
bookmark glossary prev subsection
chapter help section
 
Default None.
revNN 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 for a glimpse of how this property may be used in the future.

 
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.
 
Default None.
typeNN 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.

 
Example
if (document.all.myStyle.type ==  "text/css") {
    ...
}
 
Value
String.
 
Default None.