javascript text splitText( )

splitText( )NN 6 IE 5(Mac)/6(Win) DOM 1  

splitText(offset)

  

Divides the current text node into two sibling text nodes; otherwise, doesn't disturb the text.

 
Parameters
 
  • Positive integer specifying the zero-based character point before which the split occurs.
 
Returned Value

Reference to the second text node.


2067,Nickname,Homepage or email,Comments here,Add comment