[Javascript] Logging referring URLs
Andrew Dunn
andrew at d2k.com.au
Wed Sep 4 18:05:01 CDT 2002
You will need a server side script for this, eg ASP, JSP or PHP. You can not
do this with Client side script.
-----Original Message-----
From: OfficeMgr [mailto:OfficeMgr at NetVA.com]
Sent: Wednesday, 4 September 2002 10:26 PM
To: javascript at LaTech.edu
Subject: [Javascript] Logging referring URLs
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
_______________________________________________
Javascript mailing list
Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript
More information about the Javascript
mailing list