Modifying Text Nodes in JavaScript
Properties Data Length Methods appendData(String) deleteData(start, length) insertData(start, string) replaceData(start, length, string) splitText(start) substringData(start, length) Length Length property is used to access the length of Text which indicates the number of characters it contains. Syntax:- TextNode.length Data Data property is used to set or return the value of a text node and comment node objects. … Read more