Apologies if this is a total noobish question. I'm new to JS and not sure if the following can be accomplished.
Does DOM provide any API that allows us to access the offset of a selected text string? I need to highlight a text string and save that so that it is accessible next time when I login in. I was googling around and the impression I'm getting is that there are cross-browser compatibility issues even if you are able to do it. I'm hoping that there is some way out? Any pointers would be much appreciated.