Availability: |
| ||||||
Inherits from: | Element object | ||||||
JavaScript syntax: | IE | myLINK = myDocument.all.anElementID | |||||
IE | myLINK = myDocument.all.tags("LINK")[anIndex] | ||||||
IE | myLINK = myDocument.all[aName] | ||||||
- | myLINK = myDocument.getElementById(anElementID) | ||||||
- | myLINK = myDocument.getElementsByName(aName)[anIndex] | ||||||
- | myLINK = myLinkArray[anIndex] | ||||||
- | myLINK = myDocument.getElementsByTagName("LINK")[anIndex] | ||||||
HTML syntax: | <LINK> | ||||||
Argument list: | anIndex | A reference to an element in a collection | |||||
aName | An associative array reference | ||||||
anElementID | The ID value of an Element object | ||||||
Object properties: | charset, disabled, href, hreflang, media, readyState, rel, rev, title, type | ||||||
Event handlers: | onClick, onDblClick, onError, onHelp, onKeyDown, onKeyPress, onKeyUp, onLoad, onMouseDown, onMouseMove, onMouseOut, onMouseOver, onMouseUp, onReadyStateChange |
The <LINK> tag is used to link in external style sheet files. You can link in CSS or JSS style sheets with this technique. It allows the style sheets to be shared amongst many documents and for the site appearance to be changed globally simply by modifying a single file.
When referring to style sheets, the REL attribute has the STYLESHEET value.
The TYPE attribute indicates that the style sheet is formatted as text and contains JavaScript source text.
The REL and TYPE attributes combined tell us it is a JSS file.
The HREF attribute points at the document containing the style sheet definition to be loaded at the <LINK> point in the calling document.
This a LINK object because it refers to a document that is accessed via a URL.
The <LINK> tag conveys no apparent visible effect on the document. It is considered to be an invisible tag.
MSIE supports a LINK object as a property of its styleSheet object.
This object is related to but not identical to a Link object. It does share some property names but adds others.
This a special MSIE object class, although Netscape would probably support something functionally similar internally.
Property | JavaScript | JScript | N | IE | Opera | NES | ECMA | DOM | CSS | HTML | Notes |
---|---|---|---|---|---|---|---|---|---|---|---|
charset | 1.5 ![]() | 5.0 ![]() | 6.0 ![]() | 5.0 ![]() | ![]() | ![]() | ![]() | 1 ![]() | ![]() | ![]() | - |
disabled | 1.5 ![]() | 3.0 ![]() | 6.0 ![]() | 4.0 ![]() | ![]() | ![]() | ![]() | 2 ![]() | ![]() | ![]() | - |
href | 1.5 ![]() | 3.0 ![]() | 6.0 ![]() | 4.0 ![]() | ![]() | ![]() | ![]() | 1 ![]() | ![]() | ![]() | - |
hreflang | 1.5 ![]() | 5.0 ![]() | 6.0 ![]() | 5.0 ![]() | ![]() | ![]() | ![]() | 1 ![]() | ![]() | ![]() | - |
media | 1.5 ![]() | 3.0 ![]() | 6.0 ![]() | 4.0 ![]() | ![]() | ![]() | ![]() | 1 ![]() | ![]() | ![]() | ![]() |
readyState | ![]() | 3.0 ![]() | ![]() | 4.0 ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ReadOnly. |
rel | 1.5 ![]() | 3.0 ![]() | 6.0 ![]() | 4.0 ![]() | ![]() | ![]() | ![]() | 1 ![]() | ![]() | ![]() | - |
rev | 1.5 ![]() | 3.0 ![]() | 6.0 ![]() | 4.0 ![]() | ![]() | ![]() | ![]() | 1 ![]() | ![]() | ![]() | - |
title | 1.5 ![]() | 3.0 ![]() | 6.0 ![]() | 4.0 ![]() | ![]() | ![]() | ![]() | 1 ![]() | ![]() | ![]() | - |
type | 1.5 ![]() | 3.0 ![]() | 6.0 ![]() | 4.0 ![]() | ![]() | ![]() | ![]() | 1 ![]() | ![]() | ![]() | - |
Event name | JavaScript | JScript | N | IE | Opera | NES | ECMA | DOM | CSS | HTML | Notes |
---|---|---|---|---|---|---|---|---|---|---|---|
onClick | 1.5 ![]() | 3.0 ![]() | 6.0 ![]() | 4.0 ![]() | 3.0 ![]() | ![]() | ![]() | ![]() | ![]() | 4.0 ![]() | ![]() |
onDblClick | 1.5 ![]() | 3.0 ![]() | 6.0 ![]() | 4.0 ![]() | 3.0 ![]() | ![]() | ![]() | ![]() | ![]() | 4.0 ![]() | ![]() |
onError | 1.5 ![]() | 3.0 ![]() | 6.0 ![]() | 4.0 ![]() | 3.0 ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
onHelp | ![]() | 3.0 ![]() | ![]() | 4.0 ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
onKeyDown | 1.5 ![]() | 3.0 ![]() | 6.0 ![]() | 4.0 ![]() | 3.0 ![]() | ![]() | ![]() | ![]() | ![]() | 4.0 ![]() | ![]() |
onKeyPress | 1.5 ![]() | 3.0 ![]() | 6.0 ![]() | 4.0 ![]() | 3.0 ![]() | ![]() | ![]() | ![]() | ![]() | 4.0 ![]() | ![]() |
onKeyUp | 1.5 ![]() | 3.0 ![]() | 6.0 ![]() | 4.0 ![]() | 3.0 ![]() | ![]() | ![]() | ![]() | ![]() | 4.0 ![]() | ![]() |
onLoad | 1.5 ![]() | 3.0 ![]() | 6.0 ![]() | 4.0 ![]() | 3.0 ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
onMouseDown | 1.5 ![]() | 3.0 ![]() | 6.0 ![]() | 4.0 ![]() | 3.0 ![]() | ![]() | ![]() | ![]() | ![]() | 4.0 ![]() | ![]() |
onMouseMove | 1.5 ![]() | 3.0 ![]() | 6.0 ![]() | 4.0 ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | 4.0 ![]() | ![]() |
onMouseOut | 1.5 ![]() | 3.0 ![]() | 6.0 ![]() | 4.0 ![]() | 3.0 ![]() | ![]() | ![]() | ![]() | ![]() | 4.0 ![]() | ![]() |
onMouseOver | 1.5 ![]() | 3.0 ![]() | 6.0 ![]() | 4.0 ![]() | 3.0 ![]() | ![]() | ![]() | ![]() | ![]() | 4.0 ![]() | ![]() |
onMouseUp | 1.5 ![]() | 3.0 ![]() | 6.0 ![]() | 4.0 ![]() | 3.0 ![]() | ![]() | ![]() | ![]() | ![]() | 4.0 ![]() | ![]() |
onReadyStateChange | ![]() | 3.0 ![]() | ![]() | 4.0 ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | - |
Prev | Home | Next |
Line terminator | Up | LINK.charset |
JavaScript Programmer's Reference, Cliff Wootton Wrox Press (www.wrox.com) Join the Wrox JavaScript forum at p2p.wrox.com Please report problems to support@wrox.com © 2001 Wrox Press. All Rights Reserved. Terms and conditions. |