logo       

OT - Detect selected text with JavaScript: msg#00146

lang.ruby.rails.spinoffs

Subject: OT - Detect selected text with JavaScript

Hello,

Does anyone know if it is possible for JavaScript to detect what text is currently selected by a user? I would like to allow the user to select some text and then grab that text using JS.

I saw these guys do it : http://www.enlighter.com/ but I'm not sure if its possible to do this using JS only or if it needs a browser extension.

Thanks!
--Dave.


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise