fettig.net

More On Highlighting Search Words

Posted by Abe on Tuesday, November 19, 2002 @ 6:12 pm

Wari points to a javascript that will highlight Google search words, at kryogenix.org.  I’d considered that, but I didn’t think there was a way to get the referrer from javascript.  Turns out that there is - document.referrer.  I think this is a better way of highlighting search words.  Although it won’t work for a small percentage of clients, it should degrade gracefully (although I should test it on an old browser and see what happens).  More importantly, it takes the work off the server, and it will work on static HTML files that aren’t processed use pyblosxom (as long as they include the javascript).


This afternoon, in a strange coincidence, I came accross Michael Radwin’s blog (which I’d never read before), and found that he too is working on highlighting Google search terms.  His idea is to implement it on the server, as an Apache module.

No Comments

No comments yet.

RSS feed for comments on this post.

Sorry, the comment form is closed at this time.