title: Does JavaScript 'return false' works just inline together with HTML?
body: <p>I know that JavaScript <code>return false</code> means prevent default event (like <code>preventDefault()</code> method). </p>
  
  <p>#1</p>
  
  <pre><code>&lt;a href="http://stackoverflow.com" onclick="return false;"&gt;click&lt;/a&gt;
  </code></pre>
  
  <p>#2</p>
  
  <pre><code>&lt;a id="a" href="http://stackoverflow.com"&gt;click&lt;/a&gt;
  &lt;script&gt;
  document.getElementById('a').addEventListener('click', function(){  return false; }, false);
  &lt;/script&gt;
  </code></pre>
  
  <p>I wonder why just #1 prevent default event but not #2. Did I make some mistake?</p>
  
  <p>Edit:
  Sorry, I missed an id of anchor tag and third argument of code in #2. I added it but it's still not working.</p>