Javascript Reference
Categories: text

javascript text insertData( )

@March 15, 2008, 1:22 a.m.
insertData( )Firefox/Netscape/NN 6 IE 5(Mac)/6(Win) Chrome/Safari/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.


Powered by Linode.