...

View Full Version : Collapse all mozilla selections?



iceboxqs
06-18-2004, 12:37 AM
Back for more . . .

I'm running into a problem with having a bunch of different selected areas in my editable document in mozilla. I can't seem to get them all unselected.

I can get one or two to unselect but not all of them.

This happens after I have been using comparePoint in a loop that loops through the whole document.

I have used collapse on the selection I made but it leaves other text still selected. :confused:

Is there a quick way to unselect all the selections in mozilla?

Thanks. :thumbsup:

jkd
06-18-2004, 01:52 AM
I would try maybe:

window.getSelection().removeAllRanges()

:)

iceboxqs
06-18-2004, 05:37 PM
Hehe, that did it. Thanks.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum