PDA

View Full Version : Tracking ...


codewarrior
09-04-2002, 06:37 PM
Is there a way to track where the user came from and where is he going to?

Roy Sinclair
09-04-2002, 06:46 PM
Sort of. You can look at document.referrer to see the page they came from (if their browser provides it, most do but not in all cases).

You can tell where they're going by which link on your page they use to leave. If they leave without using a link on your page then you can't tell where they went.

whackaxe
09-04-2002, 07:32 PM
where he is coming from is kinda hard and you should know where hes going to (unless your hosting someone elses site)

duniyadnd
09-04-2002, 11:27 PM
just to help you with the "document.refferer"

It retrieves the URL of the previous location, it is a read only property with no default value.

Here's the detail on the msdn page:

http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/properties/referrer.asp

Duniyadnd