title: JS onClick return false and jQuery global .click
body: <p>I'm debugging my library in someone else's code: Part of it it's vanilla JS and my library is written in jQuery. It have tabs <a href="http://www.barelyfitz.com/projects/tabber/" rel="nofollow noreferrer">tabber.js</a> (code from 2006) and it have tabs <code>onclick</code> event attached to DOM that call <code>return false</code>.</p>
  <pre><code>tabberObj.prototype.init = function(e)
  {
      DOM_a = document.createElement(&quot;a&quot;) ;
  
      DOM_a.appendChild( document.createTextNode( t.headingText ) ) ;
      DOM_a.href = &quot;javascript:void(null);&quot; ;
      DOM_a.title = t.headingText ;
      DOM_a.onclick = this.navClick ;
      ...
  };
  
  
  tabberObj.prototype.navClick = function(event)
  {
     ...
     return false;
  };
  </code></pre>
  <p><a href="http://alessandrorosa.altervista.org/complex/code/js/all.projects/basics/tabber.js" rel="nofollow noreferrer">Here is tab code</a> where there's click handler (line 311 and 265).</p>
  <p>In my library I have:</p>
  <pre><code>$(document).bind('click.terminal', function(e) {
      var sender = $(e.target);
      if (!sender.closest('.terminal').hasClass('terminal') &amp;&amp;
          settings.onBlur(self) !== false) {
          self.disable();
      }
  });
  </code></pre>
  <p>Will my code fire? Does return false in JS do same thing as in jQuery. Will replacing return false by <code>event.preventDefault()</code> will make my code to run?</p>
  <p>From symptoms it look like my function was not executed. I've try to fetch whole app using <code>wget</code> but it didn't run.</p>