Javascript Reference
Categories: text

javascript text deleteData( )

@March 15, 2008, 1:22 a.m.
deleteData( )Firefox/Netscape/NN 6 IE 5(Mac)/6(Win) Chrome/Safari/DOM 1  

deleteData(startOffset, count)

  

Removes characters from the current text node starting with the character in (zero-based) position signified by startOffset, and for a length of count characters in the normal text direction of the current language. If the length specified for deletion goes beyond the length of the data, all characters to the end of the text node are deleted without throwing an exception. Note that Netscape 6 includes source code white space in its counts for both parameters.

 
Parameters
 
  • Positive integer specifying the zero-based starting character point for the deletion.
  • Positive integer specifying the number of characters to be deleted.
 
Returned Value

None.


Powered by Linode.