Name

CSSStyleSheet.removeRule( ): IE-specific method to remove a rule from a stylesheet — IE 4:

Synopsis

void removeRule(integerindex)

Arguments

index

The index in the rules[] array of the rule to be removed. If this optional argument is omitted, the first rule in the array is removed.

Description

This method removes the CSS style rule at the specified index of the rules array of this stylesheet. This is an IE-specific alternative to the standard deleteRule( ) method.

Get JavaScript: The Definitive Guide, 5th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.