How do I find exact offsets (start and end) of a selected text in an HTML page loaded

Ravi

New member
in web browser? There maybe a repetitions of the text that is being selected by the user in same document. I want offset of the exact text that user is selecting. I cannot just get the text selected and do get index of.

Thanks :)
 
Back
Top