title: Request address in JavaScript
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/1034621">Get current URL with JavaScript?</a></p>
  </blockquote>
  
  
  
  <p>How do you get the address of the page you are on in JavaScript?</p>
  
  <p>For example, if I had a script at <code>somesite.com/javascript/home.html</code> and I want to find out the request address (<code>somesite.com/javascript/home.html</code>), how do I get this information in JavaScript?</p>