Results 1 to 1 of 1
Thread: opposite of range.expand();
Nov 21, 2007, 03:36 #1
- Join Date
- Jan 2005
- New Orleans, LA
- 0 Post(s)
- 0 Thread(s)
opposite of range.expand();
wonder if somebody could help me with this.
in a div, I need to select all the text before a textrange.
I could do that with moveStart with a negative value, but it doesn't return false when the selection reaches the beginning of the div, so I will continue forever.
I found that range.expand() does this (return false i mean), but I need it backwards.
is there any function you know of?