Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Removes all contents within a selected range.
![]() ![]() |
Syntax
object.deleteContents();
Parameters
This method has no parameters.
Return value
This method does not return a value.
Exceptions
| Exception | Condition |
|---|---|
| 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.
.png)
.png)