Mozilla's getting a new look. What do you think? https://mzl.la/brandsurvey

deleteRule Redirect 1

« deleteRule

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

 Last updated by: Sheppy,