|
January 31, 2001 Deleting DOM Substrings Tips: January 2001
Yehuda Shiran, Ph.D.
|
|
Netscape 6 is richer in functionality than Internet Explorer, as far as text manipulation is concerned. The deleteData() method is one example. Operating on text nodes, it deletes a substring from the text node data. You can specify the offset of the substring and its length. Here is its syntax:
where:
Let's create a text node at the
and then let's delete a substring that starts at offset 15 and of length 9. Click this button to get the answer in Netscape 6 ( Here is the definition of this button:
|