Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

deleteContents method

Removes all contents within a selected range.

Document Object Model (DOM) Level 2 Traversal and Range Specification, Section 2.13Internet Explorer 9

Syntax


object.deleteContents();

Parameters

This method has no parameters.

Return value

This method does not return a value.

Exceptions

ExceptionCondition
InvalidStateError

IHTMLDOMRange::detach has been invoked on the object.

NoModificationAllowedError

Some of the contents or nodes are read-only. Versions earlier than Internet Explorer 10 return W3Exception_DOM_NO_MODIFICATION_ALLOWED_ERR.

Standards information

Remarks

If the deleted range contains closing or opening tags, the remaining tags are completed.

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.