Take the 2-minute tour ×

Should be pretty simple, but I can't seem to find it in Google. Your help is appreciated!

share|improve this question

2 Answers 2

up vote 3 down vote accepted

It depends on the browser, but this approach should cover it.

share|improve this answer
very nice example! –  Dror May 6 '09 at 6:17

If I'm not mistaken, you'll want the selectedText javascript attribute. Google has a bevy of information on it.

share|improve this answer

Your Answer


