Section 25.43. CharacterData.deleteData( ): delete characters from a Text or Comment node


25.43. CharacterData.deleteData( ): delete characters from a Text or Comment node

DOM Level 1 Core:

25.43.1. Synopsis

 void deleteData(unsigned long offset,                 unsigned long count)     throws DOMException; 

25.43.1.1. Arguments

offset

The position of the first character to be deleted.


count

The number of characters to be deleted.

25.43.1.2. Throws

This method may throw a DOMException with one of the following code values:


INDEX_SIZE_ERR

The offset or count argument is negative, or offset is greater than the length of the Text or Comment node.


NO_MODIFICATION_ALLOWED_ERR

The node is read-only and may not be modified.

25.43.2. Description

This method deletes characters from this Text or Comment node, starting with the character at the position offset and continuing for count characters. If offset plus count is greater than the number of characters in the Text or Comment node, all characters from offset to the end of the string are deleted.




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