Easy Tutorial
❮ Dom Met Node Replacechild Prop Element Nextsibling ❯

XML DOM deleteData() Method



Definition and Usage

The deleteData() method removes data from a text node.

Syntax

Parameter Description
start Required. Specifies where to start deleting data. The start value is 0-based.
length Required. Specifies how many characters to delete.

Example

The following code snippet uses loadXMLDoc() to load "books.xml" into xmlDoc and deletes some characters from the text node of the first <title> element:

Example

Output:


❮ Dom Met Node Replacechild Prop Element Nextsibling ❯