I have an app that generates tables of data for the user to look at. Some of the data shown in some columns are keys, such as CUSIP numbers, Tickers or other unique identifiers. I want the user to be able to highlight one of these numbers and be able to click something on the page that let's them look up the meaning of that number in a table.
The only part I do not know how to do is find out what text the user has selected on the page. I do not know which element the will have clicked on.
I can wrap whatever I want around stuff to make this easier, as I have total control over the HTML that makes up the page.
Unfortunately, this has to work in IE8, because that is what we are using at work, and I would like it to keep working after that, but I realize I may have to code another solution if we upgrade to a modern browser.