javascript text insertData( )

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

insertData(startOffset, "newText")

  

Inserts text into a zero-based character position in the text node.

 
Parameters
 
  • Positive integer specifying the zero-based character before which the new text is to be inserted.
  • String value of text to be inserted. A reference that evaluates to a string (such as the data property of another text node in the document) copies the referenced value to the append location.
 
Returned Value

None.


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