hi!

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?

thanks!