JavaScript Text : CharacterData
Text is a Node that represents the text content of the document. The text content of elements
like Spans is stored in Text nodes.
Constructors
Creates a new Text with the specified data. Can
also be created with document.createTextNode().
Example:
RunResults:
Instance Methods
Splits this into 2 Text nodes at the specified offset
into data. The first portion of data stays in
this and the remainder is placed in a new Text that is returned by the call to
splitText(). The remainder Text is inserted after this in this.parentNode.
Example:
RunResults:
Copyright © PUBLIC Contributors