title: jQuery: Auto scroll to top
body: <p>i use this script to open a modal:</p>
  
  <pre><code>    &lt;script type="text/javascript"&gt;
  $(function(){
  $('.compose').click(function() { 
      $('#popup_bestanden_edit_name').reveal({ 
  
          animation: 'fade',  
          animationspeed: 600,  
          closeonbackgroundclick: true,  
          dismissModalClass: 'close',
              });
      return false;
  });
  }); &lt;/script&gt;
  </code></pre>
  
  <p>But when i'm at the bottom of the page and click the link, the modal opens at the top of the page.
  So it looks like nothing happends, but i have to scroll to the top to see the modal opened.</p>
  
  <p>Is it possible to send the user automatically to the top when the modal is opened?</p>