This is a followup to http://sitepointforums.com/showthrea...&postid=206001 where I learned that the PHP variable $HTTP_REFERER didn't function in the manner that I anticipated.

This is what I would like to do with Javascript:

Determine what the previous page was that the user was viewing, even if the user arrived at my site by through the use of a browser function (history, location bar, refresh, etc.). Is this possible?

I'm not wuite sure how document.history functions - what degree of privacy is given to the user and to what extent can web pages get URLs from the user's history?