21
4
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];n=a.name;a.appendChild(document.createTextNode("#"+n));a.style.border="1px solid";;a.href="#"+n;}})();
Take that, and put it as the link address in a bookmark.
1
@rustyx -- see https://gist.github.com/inkarkat/cd1d40996a1f818dfc71 for a better version which supports h1 anchors
– Rich – 2015-10-19T11:05:15.9901Thanks. 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 – 2013-02-28T11:18:35.287
@rustyx, I'm not finding any examples of how to do that. – BCS – 2013-02-28T15:46:19.217