title: Redirecting to an aspx.page using javascript
body: <p>I want to redirect to an aspx page using javascript but upon attemptin this I get the following error</p>
  
  <pre><code>uncaught type error. Property 'location'of object[object global] is not a function
  </code></pre>
  
  <p>How cab I redirect to a aspx page using javascript</p>
  
  <pre><code>function SearchContent() {
  
  var txtBoxValue = $('#txtSearch').val();  
  if (txtBoxValue == "") {
      alert("Please enter a value");
      return false;
  }
  window.location("SearchResults?search="+txtBoxValue);
  </code></pre>