Backlinking, Sort Of

by Bob DuCharme


A key complaint of Old
Hypertext Guys about the web is that the links should be bidirectional.
Of course, a pair of <a href="" id=""></a> elements
that point at each other make a bidirectional link, but that requires edit access to both of the pages containing these a elements.



The following mix of a Google trick with a little JavaScript creates a link that takes you to a Google result list showing pages that link to the document containing your new link:




<a href="javascript:window.location='http://www.google.com/search?as_lq=' + window.location.href">Backlink</a>


For example, this link displays pages that link to this weblog posting—or it will, once Google's crawler finds the link I created from my web site to this page. For an example that shows more pages linking to a page with one of these links, see Micah Dubinko's Pushbutton Paradise in Print, near the bottom.



I was hoping to find some parameter equivalent of Google's "I'm
Feeling Lucky" option to add to the link so that clicking it would take you directly
to the top Google-ranked page that links to the page with the link you clicked, but I couldn't find such a parameter, so it remains an "indirect"
backlink, taking you to a list of pages that link to your page. (My research into an attempted direct backlink did turn up a href="http://cpsearch.calpoly.edu/helpdocs/dev_assistance.html#request_parameters">great
reference to Google parameters, and then of course there's O'Reilly's Google Hacks, a book full of neat
tricks.)



As Nik Barron pointed out when I mentioned this trick on a hypertext mailing list, it assumes that the system has access to the web and is known to Google. In a closed system with no connection to the public internet, it won't work, but if that's the case, a link manager for the closed system that tracks links and enables backlinks (and much more) would not be difficult to build.



I've recently discovered another nice use of this trick. If you bookmark it by right-clicking "this link" above and picking "Bookmark This Link" (or, from IE, "Add to Favorites") you'll put it on your bookmark pull-down menu. This gives you a quick and easy way, while looking at any web page, to see what other pages link to that page.




Do you know any variations on this trick?


3 Comments

dumky
2004-02-06 14:45:30
I'm Feeling Lucky
Just add "&btnI=foo" in the querystring to get the "I'm Feeling Lucky" feature you mention.
dumky
2004-02-06 14:47:47
Bookmarklet
The trick you mention (bookmarking the link) is very general and allows you to add custom functionality to any page using javascript, via one click on a bookmark.
You should check out http://www.bookmarklets.com
BobDuCharme
2004-02-07 05:39:35
I'm Feeling Lucky
Cool, thanks!