The same MIME type values that apply to the <SCRIPT> tag are also used for the <STYLE> tag when this attribute is applied.
When this JavaScript style sheet is evaluated, the interpreter adds the document to the scope chain so that the tags, classes and ids properties of the document object can be accessed directly as if they were global values. This saves accessing them with the document object prefix. Thus:
document.tags becomes tags
document.classes becomes classes
document.ids becomes ids
Prev | Home | Next |
<STYLE> | Up | StyleSheet object |
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. |