November 2001
Intermediate to advanced
936 pages
68h 43m
English
CharacterData.deleteData( ) — delete characters from a Text or Comment node
DOM Level 1 Core
void deleteData(unsigned longoffset, unsigned longcount) throws DOMException;
offset
The position of the first character to be deleted.
count
The number of characters to be deleted.
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.
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.