I'm trying to access document.referrer and it isn't working. What's up?

Dave Perkins

I happened to read the following in NetMechanic (found via a google search of the words "document referer"):

Note: the referrer property only works when you use it on a live Web server. If you're designing your page offline, these scripts won't work until you actually post the page to a Web server. However, you can easily test the rest of the script by commenting out the document.referrer line of code. That way, you can be sure that your document.write or window.open statements function like you expect.