25.54. CSSStyleSheet.insertRule( ): insert a rule into a stylesheetDOM Level 2 CSS:25.54.1. Synopsisunsigned long insertRule(String rule, unsigned long index) throws DOMException; 25.54.1.1. Arguments
25.54.1.2. ReturnsThe value of the index argument. 25.54.1.3. ThrowsThis method throws a DOMException with one of the following code values in the following circumstances:
25.54.2. DescriptionThis method inserts (or appends) a new CSS rule at the specified index of the cssRules array of this stylesheet. This is a DOM-standard method; see CSSStyleSheet.addRule( ) for an IE-specific alternative. |