textNode.splitText() method breaks the Text node into two nodes at the specified offset, keeping both nodes in the tree as siblings.
After the split, the current node contains all the content up to the specified offset point, and a newly created node of the same type contains the remaining text.
|offset||Required||A number specifies the position to split the text into two nodes.|
Please do google search for:
Join Our Channel
This channel is primarily useful for Full Stack Web Developer.