title: Post to url but stay on page using Javascript
body: <p>I built this link:</p>
  
  <pre><code>&lt;a href=""#"" onclick=""this.href='test.asp?Code=123&amp;ReturnTo=test2.asp'; testfunction(this, event); return true;""&gt;
  </code></pre>
  
  <p>The problem is it sends the user to the link rather than staying on the page, posting to the url and executing the function. Any ideas?</p>