CSSStyleSheet.deleteRule()

« CSSStyleSheet

The CSSStyleSheet.deleteRule() method removes a style rule from the current style sheet object.

Syntax

stylesheet.deleteRule(index) 

Parameters

  • index is a long number representing the position of the rule.

Example

 myStyles.deleteRule(0);

See also

Specification

deleteRule

Document Tags and Contributors

Contributors to this page: Sheppy, fscholz, jliu, ethertank, JesseW, teoli, Ptak82, Dria
Last updated by: teoli,