This page is Almost Ready

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

deleteRule

Summary

Deletes a CSS rule from the style sheet.

Method of css/cssom/styleSheetcss/cssom/styleSheet

Syntax

 stylesheet.deleteRule(index);

Parameters

index

Data-type
Number

The index within the rule list for the style sheet of the rule to remove.

Return Value

No return value

Related specifications

DOM Level 2 Style
Recommendation

See also

Related pages

Attributions