insertData (W3C DOM Core method)
var sentence = document.createTextNode ("When you're smiling, the whole world smiles with you."); sentence.insertData(21, "yes when you're smiling, ");
example above we create a
Text node with the value
When you're smiling, the whole world smiles with you.,
then we use the
insertData method to insert the string
yes when you're smiling, at character offset
Insert a string into this character data at a specified character offset.
Internet Explorer 5.5 in HTML doesn't implement this method (it returns undefined).
There are no comments yet.