Visit Mozilla.org

DOM:stylesheet.deleteRule

From MDC

« Gecko DOM Reference

Contents

[edit] Summary

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

[edit] Syntax

stylesheet.deleteRule(index) 

[edit] Parameters

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

[edit] Example

 myStyles.deleteRule(0);

[edit] Specification

deleteRule