How can I get the character positions of the selected text in an HTML textbox element? window.getSelection() doesn\'t work inside tex
window.getSelection()
........
Reference: http://www.codetoad.com/javascript_get_selected_text.asp