title: redirect user to current page with some querystring using javascript
body: <p>When a person clicks on a link, I want to do this:</p>
  
  <ol>
  <li>grab the text from a textbox</li>
  <li>encode the text</li>
  <li>redirect to currentpage.aspx?search=textboxvalue</li>
  </ol>
  
  <p>I have this so far but its not working:</p>
  
  <pre><code>window.location.href = "?search=" + escape( $("#someId").val());
  </code></pre>