Javascript Reference
Categories: styleSheet

javascript styleSheet Description

@March 15, 2008, 1:22 a.m.
styleSheetFirefox/Netscape/NN 6 IE 4 Chrome/Safari/DOM 2  


The styleSheet object represents a style sheet that may have been created as a style element or imported with a link element or @import statement inside a style element. This object is different from the style element object, which strictly reflects the style HTML element and its attributes. The document.styleSheets[ ] collection contains zero or more styleSheet objects. The shared disabled property is available in all supporting browsers, facilitating the enabling and disabling of entire style sheets with simple Boolean assignments.

Object Model Reference
Object-Specific Properties
cssRules[ ]cssTexthrefimports[ ]media
ownerNodeownerRuleowningElementpages[ ]parentStyleSheet
readOnlyrules[ ]titletype
Object-Specific Methods
addImport( )addRule( )deleteRule( )insertRule( )removeRule( )
Object-Specific Event Handler Properties


Powered by Linode.