Programmer's Guide > Interfaces > W3C CharacterData interface > deleteData method
  
deleteData method
Remove a range of 16-bit units from the node. Upon success, data and length reflect the change.
deleteData(offset, count)
Parameters
unsigned longoffset
The offset from which to start removing.
unsigned longcount
The number of 16-bit units to delete. If the sum of offset and count exceeds length then all 16-bit units from offset to the end of the data are deleted.
Returns
void
Throws
DOMException
INDEX_SIZE_ERR: Raised if the specified offset is negative or greater than the number of 16-bit units in data, or if the specified count is negative.
NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.