title: Javascript confirm dialog
body: <p>I want to add a confirm dialog to a delete button to ask the user whether it is ok or not deleting the selected item.</p>
  <p>If not, nothing should happend, else a url should be executed.</p>
  <p>I know how to realize this via some Javascript code but I am looking for a solution that has less code. I mean e.g. :</p>
  <pre><code>&lt;a href=&quot;mysite.de/xy/delete&quot; onClick=&quot;...&quot;&gt;Delete&lt;/a&gt;
  </code></pre>
  <p>Is it possible to put the whole functionality in the <code>onClick</code> element without having some extra Javascript in the header?</p>