Ok, if you have a text area and the user has highlighted some 4 words or whatever. Is it possible to grab the string of the 4 words that are highlighted? I know you can grab the info in the field but, can you grab only a selection of that field?
it's GOT to be possible. I remembered something like this on the Google.com site. SO I downloaded their "Google.com" bar. If I do a search using their bar, I can click the "highlight" button and all instances of my search text are highlighted in yellow on the screen...IN REAL TIME!
Yes but only with IE.
var selection = document.selection.createRange();