Can I get a Javascript event from the selection of text outside of text or textarea?
I would like to know when a user selects text in an html page using Javascript. The text should not be editable. The onselect event seems to be only applicable to <textarea> and <input type="TEXT"> tags. The event is not fired if either tag is disabled. Is there a way around this with these tags? Is there a completely different approach? Sampson Sure, an example exists here: http://www.codetoad.com/javascript_get_selected_text.asp Using what you see here, you could bind events to the click/release events of the document body, and check to see if there is a selection, and how long the selection