title: I cannot get php to redirect with onclick()
body: <p>I have a button in php that will not redirect. Assume the page destination is correct, is anything else wrong with this line?</p>
  
  <pre><code>echo "&lt;button id=\"create\" onclick=\"location.href('/team/teams.php?op=create');\"&gt;Create Team&lt;/button&gt;&lt;br&gt;";
  </code></pre>
  
  <p>thanks!</p>