Inserts a new rule to a media block.
var ruleIndex = mediaRule.insertRule(/* see parameter list */);
The parsable text that represents the rule. For rule sets, this contains both the selector and the style declaration. For at-rules, this specifies both the at-identifier and the rule content.
The index within the media block’s rule collection. The rule is inserted immediately before this index. If the specified index is equal to the length of the media block’s rule collection, the rule is added to the end of the media block.
Returns an object of type NumberNumber
The index of the newly inserted rule within the media block’s rule collection.
- DOM Level 2 Style
Microsoft Developer Network: [Windows Internet Explorer API reference Article]