Programmer's Guide > Interfaces > W3C Range interface > deleteContents method
  
deleteContents method
Removes the contents of a Range from the containing document or document fragment without returning a reference to the removed content.
deleteContents( )
Parameters
None
Returns
void
Throws
DOMException
NO_MODIFICATION_ALLOWED_ERR: Raised if any portion of the content of the Range is read-only or any of the nodes that contain any of the content of the Range are read-only.
INVALID_STATE_ERR: Raised if detach() has already been invoked on this object.