The Wayback Machine - https://web.archive.org/web/20121011001747/http://docs.webplatform.org:80/wiki/css/cssom/CSSMediaRule/insertRule
Personal tools

insertRule

< css‎ | cssom
Jump to: navigation, search


Contents

Syntax

var object = object.insertRule();


Return Value

Returns an object of type DOM Node.

Integer

The index of the newly inserted rule within the media block's rule collection.


Syntax

Standards information


Parameters

bstrRule [in]
Type: BSTRThe 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.
lIndex [in]
Type: Integer <b/>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.

See Also

Related Articles

CSSOM





















  • insertRule
































Related pages (MSDN)

This article contains content originally from external sources.

Portions of this content come from the Microsoft Developer Network: [Windows Internet Explorer API reference Article]