title: HTML onclick and href
body: <p>I have a link like this.</p>
  
  <pre><code>&lt;a href="board.php?id={$id}" onclick="javascript:parent.$.fancybox.open({href : 'board.php?id={$id}', type: 'ajax'});"&gt;
  </code></pre>
  
  <p>If the JavaScript is disabled, the browser can use the <code>href</code> value to load the page. But, if the JavaScript is enabled, the <code>onclick</code> and the <code>href</code> will work together. How can I prevent this? I want the <code>href</code> not to work when the JavaScript is enabled.</p>