title: Document.referrer empty when navigating from external url?
body: <p>I have the following code:</p>
  
  <pre><code>var previousPageUrl= document.referrer;
  alert(previousPageUrl);
  </code></pre>
  
  <p>This will not work if the previous page url is of any external site, i.e., not of my application.</p>
  
  <p>For example:</p>
  
  <p>If I am in Page 1 and went to Page 2 of my application then I will get page 1 url in referrer in Page 2 load but when I go to external site say www.google.com then again when I come back to page 1 the I will not get www.google.com as referrer url.</p>
  
  <p>Can Somebody tell to resove this issue.</p>