Name

styleSheet — NN n/a IE 4 DOM n/a

Synopsis

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 object, which strictly reflects the STYLE HTML element and its attributes. The styleSheets[] collection contains one or more styleSheet objects. The only properties that the two kinds of objects have in common are the id property (only when a stylesheet object is generated via a STYLE element) and the disabled property.

Object Model Reference

IE

[window.]document.styleSheets[i]

Properties

disabled

id

parentStyleSheet

readOnly

type

href

owningElement

   

Methods

addImport( )

addRule( )

 

Collections/Arrays

imports[]

rules[]

 

Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.