title: how to get url in html , document.referrer is empty
body: <p>Please help to get current URL from which this page is called ? what is wrong with this ?, becaz alert comes with empty.</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;script&gt;
   function check()
  {
  alert(document.referrer);
  }
  &lt;/script&gt;
  &lt;/head&gt;
  &lt;body onload="check()"&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>