title: Why return false doesn't prevent page refreshing
body: <p>I want to go to the next page on my list via <code>pjax</code> and I need to prevent page from  refreshing after click on the <code>anchor</code> element. I am trying this way:</p>
  
  <pre><code>echo "&lt;a class='$active' href='admin" . $admin[0]['numb'] . ".php?p={$p}&amp;id={$user['id']}&amp;page={$currentPage}&amp;offset={$pageOffset}' onclick='return userForm.actionPager(this)'&gt;{$currentPage}&lt;/a&gt;";
  </code></pre>
  
  <p>Where the <code>userForm.actionPager(this)</code> looks like:</p>
  
  <pre><code>let actionPager = function (link) {
          let url = $(link).attr('href').split('?')
          $.pjax.defaults.timeout = false
          $.pjax({
              url: url[0],
              data: url[1],
              container: '#user-actions-container'
          })
          return false
      }
  </code></pre>
  
  <p>I also tried to put <code>return false</code> after the method like:
  <code>onclick='userForm.actionPager(this); return false;'</code> but again the page is refreshed. What am I doing wrong ?</p>