title: Scroll To Top Button and open new page
body: <p>I want, When I click on a button to go to the top and change the page.</p>
  
  <p>I have this</p>
  
  <p>code js> </p>
  
  <pre><code>$(document).ready(function(){
  
      //Check to see if the window is top if not then display button
      $(window).scroll(function(){
          if ($(this).scrollTop() &gt; 100) {
              $('.scrollToTop').fadeIn();
          } else {
              $('.scrollToTop').fadeOut();
          }
      });
  
      //Click event to scroll to top
      $('.scrollToTop').click(function(){
          $('html, body').animate({scrollTop : 0},800);
          return false;
      });
  </code></pre>
  
  <p>code html> </p>
  
  <pre><code>&lt;a href="&lt;?php $url-&gt;_getURL('openpage'); ?&gt;" class="scrollToTop"&gt;Domestic Electrical installation&lt;/a&gt;
  </code></pre>
  
  <p>thank you for your help</p>