[Javascript] Logging referring URLs

OfficeMgr OfficeMgr at NetVA.com
Wed Sep 4 07:26:19 CDT 2002


This is my first post to this group and hope that I am doing it correctly.

I have seen the following script, which writes the referring URL to 
the user's browser window.

<SCRIPT LANGUAGE="JavaScript">

var where = document.referrer
document.write("<SIZE=+0 FACE=Arial, Century Gothic 
color=white>You've been referred by "+where+" ")

</SCRIPT>

Is there some way of writing the document.referrer to a log file on 
the host webserver.  The webserver in question does not have any raw 
logs available and I'm hoping to make up for it with a simple script?

Cheers,
Brent





More information about the Javascript mailing list