How can I go to a new page from within javascript?
<p>I have a link like this:</p>

<pre><code>&lt;a href="www.xxx.com"&gt;
</code></pre>

<p>I would like to simulate the clicking of this link within javascript with a function that is called with the left arrow but I am not sure how to do it. </p>

<p>Now I have this:</p>

<pre><code>$(window).keypress(function (e)
{
   if (e.keyCode == 37)
   {
    //  position 1
   }

});
</code></pre>

<p>But I am not sure how to change the page to the link "www.xxx.com" from within javascript at position 1. Can someone help me with this. </p>
