title: Make browser go to different url on button click?
body: <p>I've got a jquery-ui button. When clicked, I want to move the browser to a url within my domain:</p>
  
  <pre><code>&lt;button onclick='foo'&gt;Go&lt;/button&gt;
  
  function foo() {
      window.location('/otherpage');
  }
  </code></pre>
  
  <p>is that the right way to do it, and address it relatively? Is there a better way to do this?</p>
  
  <p>Thanks</p>