title: How can I configure a link to be a normal link or an onclick handler?
body: <p>I want to give the user the option to configure a link either as a normal link or with an onclick event. In case of the onclick event the default behaviour should be disabled. Currently I've this link: </p>
  
  <pre><code>  &lt;a target="_blank" class="arrow" href="javascript:void();" onclick="f(\"value",\"value\");return false;"&gt; 
  </code></pre>
  
  <p>This works great for the onclick event. But how is the link supposed to be looking when I only need the href? </p>
  
  <p>This?: </p>
  
  <pre><code>&lt;a target="_blank" class="arrow" href="http://www.xy.com" onclick="return false;"&gt;
  </code></pre>
  
  <p>Or it's better to remove the onclick attribute completely? Or is this better:</p>
  
  <pre><code> &lt;a target="_blank" class="arrow" href="http://www.xy.com" onclick="javascript:void();"&gt;
  </code></pre>