window.location() is not working in .aspx page
<p>I have an aspx page and a asp textbox control which has ajax autoCompleteExtender. I want the page to be redirected to another page according to the selected element from the autocomplete list. But when I use</p>

<pre><code>window.location()
</code></pre>

<p>nothing is happening, just the same page is refreshed. Here is my javascript;</p>

<pre><code>&lt;script type="text/javascript"&gt;
    function selectCity() {
        var str = document.getElementById('&lt;%= txtSearchForDestination.ClientID %&gt;').value;
        var array = str.split(",");
        var city = array[0].replace(/^\s\s*/, '').replace(/\s\s*$/, '');
        city = city.replace(/ /g, "+")
        var country = array[1].replace(/^\s\s*/, '').replace(/\s\s*$/, '');
        country = country.replace(/ /g, "+")
        window.location.href("City.aspx?city=" + city + "-" + country);
    }
&lt;/script&gt;
</code></pre>

<p>The script is working, I tried it with like </p>

<blockquote>
  <p>alert("City.aspx?city=" + city + "-" + country)</p>
</blockquote>

<p>there is no problem. But when I want to redirect to that page it is not working. I also tried </p>

<blockquote>
  <p>window.location("http://www.google.com")</p>
</blockquote>

<p>it's not working as well.</p>

<p>What can be the problem ?</p>
