Hacker News new | past | comments | ask | show | jobs | submit login

You can use getSelection() to do that, but it doesn't work everywhere. [0] [1]

[0] https://stackoverflow.com/questions/7563169/detect-which-wor...

[1] http://jsfiddle.net/Vap7C/15/




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: