MDN’s new design is in Beta! A sneak peek: https://blog.mozilla.org/opendesign/mdns-new-design-beta/

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,