Programmer's Guide > Interfaces > W3C CharacterData interface > insertData method
  
insertData method
Insert a string at the specified 16-bit unit offset.
insertData(offset, arg)
Parameters
unsigned longoffset
The character offset at which to insert.
Stringarg
The DOMString to insert.
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.
NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.