title: How do I prevent event propagation on link click?
body: <p>When I click on my a-tag, I do not want the parent's event to trigger. If the child had a normal event listener, it could be prevented by event.stopPropagation(), but how do I do it when there is no "event"?</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html lang="en"&gt;
  &lt;head&gt;
      &lt;meta charset="UTF-8"&gt;
      &lt;title&gt;Title&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;div id="parent" style="width:100px; height:100px; background-color: red"&gt;
      &lt;a id="child" href="https://i.kym-cdn.com/entries/icons/facebook/000/013/564/doge.jpg"&gt;Text&lt;/a&gt;
  &lt;/div&gt;
  &lt;script&gt;
      document.getElementById("parent").addEventListener("click", function () {
          alert("Oh no, you clicked me!");
      });
  &lt;/script&gt;
  &lt;script src="test.js"&gt;&lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>