Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I often find my self looking for a link that will drop me in the middle of a web page. Often I find that the page has the needed <a name='foo'> tags but no easy way (e.g. a table of contents) to find them. Does anyone know of a plugin that shows where/what those tags are?

I'd need chrome but answered for others would be useful.

FWIW: this is what I ended up using:

javascript:(function(){var i,n,a;as=document.anchors;for(i=0;i<as.length;++i) {a=as[i];;a.appendChild(document.createTextNode("#"+n));"1px solid";;a.href="#"+n;}})();

Take that, and put it as the link address in a bookmark.

share|improve this question
Thanks. Too bad this doesn't seem to work with frames or heading anchors (it is possible to anchor on an H1, for example, not just on an <A>) – rustyx Feb 28 '13 at 11:18
@rustyx, I'm not finding any examples of how to do that. – BCS Feb 28 '13 at 15:46
@rustyx -- see for a better version which supports h1 anchors – Rich Oct 19 '15 at 11:05
up vote 9 down vote accepted

Web Development Bookmarklets has a JavaScript bookmarklet called named anchors that will insert links at each <a name=""> anchor. To use the bookmarklet, add it to your favorites menu or links bar. Then, on any page, click on the "named anchors" bookmark to insert links into the current page. However, it doesn't work on Wikipedia or other sites that use id attributes of tags as anchors.

Show Anchors is a more modern bookmarklet that shows both <a name=""> and id elements with an anchor icon. The icon is embedded in the bookmarklet as a data: URL, so it might not work in older browsers. (The bookmarklet link is at the very top of the post.)

share|improve this answer
I can't seem to make the second one work. – BCS Sep 27 '10 at 0:30
This version of "show anchors" is much improved from that blog post: – Rich Oct 19 '15 at 11:04

The Show Anchors add-on does just that on FireFox.

share|improve this answer

There's also a Chrome Extension for this:

share|improve this answer
There were reports that one stopped working and it only has 3 stars. – Dan Csharpster Dec 23 '15 at 19:03

Display Anchors seems to be the most popular Chrome plugin.

share|improve this answer

BCS's answer adapted to work with frames:

javascript:(function(){function f(e){var i,n,a;as=e.anchors;for(i=0;i<as.length;++i){a=as[i];;a.appendChild(e.createTextNode('\u2693'+n));'#fff';'#666';'5px';a.href='#'+n;}}if(window.frames.length)for(var i=0;i<window.frames.length;++i)f(window.frames[i].document);else f(document);})();
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.