title: Find the nearest named anchor to an element on a web page in JavaScript
body: <p>I'd like to be able to right-click on an element on a web page and get the URL of the nearest anchor.</p>
  <p>For example, say I'm looking at online documentation, and I see a paragraph saying something surprising. Then I'd like to be able to right-click on that, choose &quot;copy URL of nearest anchor&quot;, go to my IDE, and be able to paste a URL, like &quot;http://docs.somelang.org/1.9/manual.htm#section9&quot; into a code comment.</p>
  <p>Currently, I have to do &quot;view source&quot; and hunt around for the nearest  element.</p>
  <p>Anything which does something reasonably close to this in any major browser would suffice, but my ideal answer would be something which can be added to the right-click menu in Chrome.</p>