title: IE has empty document.referrer after a location.replace
body: <p>I've got a site that does a complex search and has a "loading" page.  On the loading page we use:</p>
  
  <p><code>&lt;body onload="window.location.replace('results_page.php');" &gt;</code></p>
  
  <p>Or:</p>
  
  <p><code>&lt;body onload="window.location = 'results_page.php';" &gt;</code></p>
  
  <p>The only difference between the two option above are that location.replace() ignores the page in the browser's history.</p>
  
  <p>On the results_page I need to read the referrer for tracking purposes:</p>
  
  <p><code>&lt;script&gt; alert(document.referrer); &lt;/script&gt;</code></p>
  
  <p>This works fine on all browsers except IE, which returns and empty value for <code>document.referrer</code>.</p>
  
  <p>Anyone know a better way to do a javascript redirect that will give IE a value for the referrer?</p>
  
  <p>p.s. This example has been made much more simple than it would be in production.</p>