|
January 29, 2001 Inserting DOM Strings Tips: January 2001
Yehuda Shiran, Ph.D.
|
|
Netscape 6 is richer in functionality than Internet Explorer, as far as text manipulation is concerned. The insertData() method is one example. Operating on text nodes, it inserts a string to the text node data. You can specify the offset at which to insert, and the data to insert. Here is its syntax:
where:
Let's create a text node at the
and then let's insert Here is the definition of this button:
People who read this tip also read these tips: Look for similar tips by subject: |