View Single Post
Old 03-19-2004, 06:25 PM   PM User | #4
jkd
Senior Coder

 
jkd's Avatar
 
Join Date: May 2002
Location: metro DC
Posts: 3,163
Thanks: 1
Thanked 18 Times in 18 Posts
jkd will become famous soon enough
You're probably using Internet Explorer than. Their developers implemented a TextRange object, which they often call simply a Range. However, the W3C DOM working group also created a Range object in DOM2. IE's TextRange object is not compliant at all with the DOM2 Range specifications, even though you sometimes see similarly named methods (createRange() for instace). That is probably what is confusing you.

Try using document.createRange() and the rest of your code in Mozilla. It will work fine.
__________________
jasonkarldavis.com
jkd is offline   Reply With Quote