AvailabilityDOM Level 2 Range Synopsisvoid deleteContents( ) throws DOMException; ThrowsIf any portion of the document that is represented by this range is read-only, this method throws a DOMException with a code of NO_MODIFICATION_ALLOWED_ERR. DescriptionThis method deletes all document content represented by this range. When this method returns, the range is collapsed with both boundary points at the same position. Note that the deletion may result in adjacent Text nodes that can be merged with a call to Node.normalize( ). See Range.cloneContents( ) for a way to copy document content and Range.extractContents( ) for a way to copy and delete document content in a single operation. See AlsoNode.normalize( ), Range.cloneContents( ), Range.extractContents( ) |