[SOLVED] Javascript equivalent of HTTP_REFERER

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
anjanesh
DevNet Resident
Posts: 1679
Joined: Sat Dec 06, 2003 9:52 pm
Location: Mumbai, India

[SOLVED] Javascript equivalent of HTTP_REFERER

Post by anjanesh »

Im pretty sure there is a Javascript way to determine from which page it has come from becuase I saw it once which shows you what keywords you searched for in the search engine.

Anyone ?

Thanks
Last edited by anjanesh on Wed Jun 08, 2005 12:26 am, edited 1 time in total.
User avatar
wwwapu
Forum Contributor
Posts: 197
Joined: Wed Apr 07, 2004 11:57 am
Location: Turku, Finland

Post by wwwapu »

could it be something as exciting as document.referer ?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

document.referrer in IE and Firefox.

;)
User avatar
anjanesh
DevNet Resident
Posts: 1679
Joined: Sat Dec 06, 2003 9:52 pm
Location: Mumbai, India

Post by anjanesh »

Ah...I was trying document.referer - in PHP its $_SERVER['HTTP_REFERER']
Thanks
Post Reply