Represents a stylesheet object.
Platform Support
| IE | Mozilla | Netscape | Opera | Safari | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ |
|---|
Constructors
| Constructor | Action | IE | Mozilla | Netscape | Opera | Safari | ||
|---|---|---|---|---|---|---|---|---|
|
StyleSheet Constructor() : StyleSheet
Represents a stylesheet object.
|
Show Details | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ | ||
StyleSheet() : StyleSheetRepresents a stylesheet object. Returns
|
||||||||
Properties
| Property | Action | IE | Mozilla | Netscape | Opera | Safari |
|---|---|---|---|---|---|---|
|
disabled
: Boolean
If true, indicates that the stylesheet is disabled.
|
Show Details | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ |
|
||||||
|
href
: String
URL for the stylesheet.
|
Show Details | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ |
|
||||||
|
media
: MediaList
List of media types that the stylesheet should be associated with.
|
Show Details | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ |
|
||||||
|
ownerNode
: Node
Document node that contains the link to the stylesheet.
|
Show Details | no | 1.0+ | 6.0+ | 7.0+ | 1.0+ |
|
||||||
|
parentStyleSheet
: StyleSheet
Parent stylesheet to this stylesheet.
|
Show Details | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ |
|
||||||
|
title
: String
Title of the stylesheet.
|
Show Details | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ |
|
||||||
|
type
: String
MIME type for the stylesheet.
|
Show Details | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ |
|
||||||
References
CSSStyleSheet|Document.styleSheets|LinkStyle
Availability
HTML DOM Level 2|W3C
