JavaScript document.referrer
<p>I've got two webpages one</p>

<pre><code>&lt;html&gt;
  &lt;body&gt;
    &lt;p&gt;&lt;a href="page2.html"&gt;Link&lt;/a&gt;&lt;/p&gt;
  &lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>And the second page.</p>

<pre><code>&lt;html&gt;
  &lt;body&gt;
    &lt;script type="text/javascript"&gt;
      document.write(document.referrer);
    &lt;/script&gt;
  &lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>The second page is always blank, it doesn't seem to be picking up the referrer, any idea's why?</p>
