title: Modify target url in onclick handler
body: <p>Is it possible to modify the target URL in the onclick handler? How?</p>
  
  <p>I don't want to use things like <code>window.location = ...</code> because it changes the browsers' behaviour (click vs ctrl-click, opening in new tab, opening in particular window/frame etc...). <strong>I want a clean solution - just change the url and the rest should be done itself as it would normally be.</strong></p>
  
  <pre><code>$(...).click(function () {
      if (check_some_condition) 
          // modify target url here...
          // do not want to do window.location= - this is not clean
          // as it changes the browsers' behaviour (ctrl-click, opening in particular window/frame etc.)
      return true;
  });
  </code></pre>