javascript cssRule insertRule( )

insertRule( )NN 6 IE n/a DOM 2  

insertRule("rule", index)

  

Inserts a new rule (selector text and style attributes) into the current @media rule at the position indicated by the second parameter.

 
W3C DOM CSSRule Types
 
CSSMediaRule
 
Parameters
 
rule

A string containing selector and curly-braced style attributes comprising the rule to be inserted.

index

A zero-based integer corresponding to the specified item in source code order.

 
Returned Value

Integer of inserted position.


436,Nickname,Homepage or email,Comments here,Add comment