{{APIRef("CSSOM")}}
The StyleSheet.disabled
property indicates whether the style sheet is applied. A style sheet may be disabled by manually setting this property to true
or if it's an inactive alternative style sheet.
Syntax
bool = stylesheet.disabled
Example
// if the stylesheet is disabled... if (stylesheet.disabled) { // apply style in-line }