deleteRule
Summary
Deletes a CSSRule (representing a selector and all its properties) from the block of rules controlled by this @media rule; the rule to be deleted is specified by index.
Method of css/cssom/CSSMediaRule/CSSMediaRulecss/cssom/CSSMediaRule/CSSMediaRule
Syntax
mediaRule.deleteRule(/* see parameter list */);
Parameters
index
- Data-type
- Number
The index of the rule to remove from the media block’s rule collection.
Return Value
No return value
Related specifications
- DOM Level 2 Style
- Recommendation
See also
Related articles
CSSOM
deleteRule
Related pages
- CSSMediaRuleCSSMediaRule
Reference
- cssRulescssRules
- insertRuleinsertRule
- mediamedia
Attributions
Microsoft Developer Network: [Windows Internet Explorer API reference Article]