Need some help with the function used to clear a selection.
In IE it is: document.selection.empty()
In other browsers I got as far as document.getSelection()..... then I don’t know what the function is to deselect or clear the selection.
Thanks.
eelixduppy
8:09 pm on Sep 8, 2006 (gmt 0)
Maybe sel.removeAllRanges();?
Javascript isn't my thing, it's PHP. Just trying to help ;)
Good luck!
P.S. Sometimes a google search may reveal something useful.
Jimmy Turnip
2:57 pm on Sep 11, 2006 (gmt 0)
Well, I was still scratching my head for a while but in case anyone was wondering document.getSelection().removeAllRanges() doesn't work, but window.getSelection().removeAllRanges() does.