title: Go to top of the page before opening link in the same window(tab). How to?
body: <p>I want to go to top of the page when click on link and then open link in the same tab</p>
  
  <p>I tried to use this code, but I only go to top of the page and link doesnt open</p>
  
  <p>This is my JS</p>
  
  <pre><code>$(document).ready(function(){
  $('.scrollToTop').click(function(){
          $('html, body').animate({scrollTop : 0},1800);
          return false;
      });
  });
  </code></pre>
  
  <p>And this is my HTML link</p>
  
  <pre><code>&lt;a href="./current_page?page=5" class="scrollToTop"&gt;&amp;gt;&lt;/a&gt;
  </code></pre>
  
  <p>Please help)</p>