title: Onclick or href which is best for opening an link in button
body: <p>Which is the best method.To open an link using button </p>
  
  <pre><code>&lt;button type="button" onclick="location='permalink.php'"&gt;Permalink&lt;/button&gt;
  
  &lt;button type="button" href="index.php"&gt;Permalink&lt;/button&gt;
  </code></pre>