Forum Moderators: open

Message Too Old, No Replies

Can I get the search engine query strings using javascript?

         

shrirch

3:58 am on Dec 2, 2003 (gmt 0)

10+ Year Member



I'd like to capture the search engine refferer string and populate my own search box with the string. Are their any widely available scripts that can do this?

I've got a very fast moving forum and have found that quite a few topics move out of the pages that have been craweled.

Any tips would be appreciated.

dcrombie

12:05 pm on Dec 3, 2003 (gmt 0)



You can get the referrer using
document.referrer

Extracting the search value should be just a matter of using a regexp or other string functions on that variable.