title: YES/NO before firing Link
body: <p>I need a YES/NO prompt before a link is fired. I've tried several solutions I found on but none worked out fine. None did even block the firing of the link, except confirm(). But confirm() does not give me the chance to change stuff or change the button labels.
  I want to add a value to the url depending on what the user chose. Another problem is that I have a list of these links on the page (events).
  Any help would be appreciated.</p>
  
  <p><strong>EDIT 1</strong></p>
  
  <pre><code>$("a").click(function(e) {
      e.preventDefault();
  });
  </code></pre>
  
  <p>is not working and in this case I don't know how to access the url. And I just want to postpone the calling of the url.</p>
  
  <p><strong>Edit 2</strong>
  This is the code for the creation of the link (cakephp):</p>
  
  <pre><code>echo $this-&gt;Html-&gt;link(
      $this-&gt;Html-&gt;image('image.png',array(
        'title' =&gt; __('title'),
        'alt' =&gt; __('title')
      )),
      array(
        'action' =&gt; 'action',
        $eventId,
        $anotherVar,
        $this-&gt;Paginator-&gt;current(),
        $customerId
      ),
      array('escape' =&gt; false)
    );
  </code></pre>
  
  <p>Now I want to ask the customer a YES/NO question and depending on what the customer choose add another parameter to the url.</p>
  
  <p><strong>EDIT 3</strong> 
  The html code created thru the code above:</p>
  
  <pre><code>&lt;a href="/system/controller/function/value1/value2"&gt;
  </code></pre>
  
  <p>
  </p>