styleSheet Properties DHTML Object Properties
Retrieves whether a stylesheet specifies a title and is currently selected.
HTML |
N/A |
Script |
[ bDisabled = ] styleSheet.disabled |
false |
The stylesheet is selected and applied. |
true |
The stylesheet is not selected. |
This property returns or accepts only a boolean value, meaning true if set, and false if not. The property is read/write with a default value of false.
Modifying this attribute may cause a new resolution of style for the document. A stylesheet only applies if both an appropriate medium definition is present and the disabled attribute is false
. So, if the media doesn't apply to the current user agent, the disabled attribute is ignored.
The value of this property can also change per media-dependent stylesheets. The application of individual stylesheets can be turned on and off dynamically. Note that the value of this property is also controlled by whether titled stylesheets are applied.
styleSheet