Section 25.53. CSSStyleSheet.deleteRule( ): delete a rule from a stylesheet


25.53. CSSStyleSheet.deleteRule( ): delete a rule from a stylesheet

DOM Level 2 CSS:

25.53.1. Synopsis

 void deleteRule(unsigned long index)     tHRows DOMException; 

25.53.1.1. Arguments

index

The index within the cssRules array of the rule to be deleted.

25.53.1.2. Throws

This method throws a DOMException with a code of INDEX_SIZE_ERR if index is negative or greater than or equal to cssRules.length. It throws a DOMException with a code of NO_MODIFICATION_ALLOWED_ERR if this stylesheet is read-only.

25.53.2. Description

This method deletes the rule at the specified index from the cssRules array. This is a DOM-standard method; see CSSStyleSheet.removeRule( ) for an IE-specific alternative.




JavaScript. The Definitive Guide
JavaScript: The Definitive Guide
ISBN: 0596101996
EAN: 2147483647
Year: 2004
Pages: 767

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net