ParentFull threadAdirael·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/View on HN