title: Redirecting a page using Javascript, like PHP's Header->Location
body: <p>I have some code like so: </p>
  
  <pre><code>$('.entry a:first').click(function()
  {
      &lt;?php header("Location:" . "http://www.google.com"); ?&gt;
  });
  </code></pre>
  
  <p>I would like to know how I can achieve this using Javascript. </p>