|
July 6, 2001 Deleting DOM Substrings Tips: July 2001
Yehuda Shiran, Ph.D.
|
|
Internet Explorer 6 is richer in functionality than Internet Explorer 5.5 in its text manipulation support. 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 or Internet Explorer 6 ( Here is the definition of this button:
The event handler is defined as follows:
People who read this tip also read these tips: Look for similar tips by subject: |