title: click on div element inside an <a> tag
body: <p>I have a set of div elements inside <code>&lt;a&gt;</code> tag with it's href.</p>
  
  <p>The question is that there is a div inside of it with its own click event and I want that in case the div element trigger the click event, the <code>&lt;a&gt;</code> tag should not be triggered.</p>
  
  <p>The function that manage the div click event try to stop propagation with no success.</p>
  
  <pre><code>if (!e) var e = window.event;
  e.cancelBubble = true;
  if (e.stopPropagation) e.stopPropagation();
  </code></pre>
  
  <p>What's wrong?</p>