javascript text replaceData( )
@March 15, 2008, 1:22 a.m.
replaceData( ) | Firefox/Netscape/NN 6 IE 5(Mac)/6(Win) Chrome/Safari/DOM 1 |
replaceData(startOffset, count, "newText") | |
Replaces text in the current text node with new text. The original content to be removed is signified by the zero-based start position and the number of characters. The string passed as a third parameter goes into the space vacated by the removed text. A bug in IE 5 for Macintosh crops the new text to the length of the removed text. |
|
Parameters | |
|
|
Returned Value | |
None. |
Permanent URL:
http://javascript.gakaa.com/text-replacedata-4-0-5-.aspx
Powered by Linode.