XML DOM removeRule() method

Definition and usage

The removeRule() method removes a rule from a stylesheet, which is an IE-specific method.

Syntax:

removeRule(index)
Parameter Description
index Optional. The index of the rule to be deleted in the cssRules array. If the parameter is omitted, the first rule in the array will be removed.

Description

This method will delete the specified rule from the rule array index CSS style rules at the location. It is the standard deleteRule() methodA specific IE alternative method.

Related pages

XML DOM reference manual:CSSStyleSheet.deleteRule()