Programmer's Guide > Interfaces > W3C CharacterDataEditVAL interface > canInsertData method
  
canInsertData method
Determines if character data can be inserted.
canInsertData(offset, arg)
Parameters
unsigned longoffset
Offset.
Stringarg
Argument to be set.
Returns
unsigned short. A validation state constant.
Throws
DOMException
INDEX_SIZE_ERR: Raised if the specified offset is negative or greater than the number of 16-bit units in data.