Get link if user selected text is contained within a link
<p>Okay, so I am trying to figure out how to get a link href if the user has highlightened text is contained within a text...</p>

<p>So for example if the following is a link</p>

<pre><code>&lt;a href="http://www.google.com"&gt;Find us on Google&lt;/a&gt;
</code></pre>

<p>and the user hightlights the text "Google"</p>

<pre><code>&lt;a href="http://www.google.com"&gt;Find us on Google&lt;/a&gt;
</code></pre>

<p>So the question is:
After the user highlights text (as in to copy and paste it) they well hit a button and it will return what the link is for the selected text.</p>

<p>I hope I made this clear, wasn't really sure how to phrase it.</p>
