title: how to prevent my jquery modal from scrolling to the top of the window?
body: <p>Hi i think its ugly when I click on form button the modal brings user up to the start of the page. I would rather it stay where the user is currently on the page. Is this possible? </p>
  
  <pre><code>$(".buttons").click(function(){
          $("#overlay-modal").fadeIn();
      });
      $(document).mousedown(function(e){
              var clicked = $(e.target);
          if (clicked.is('.inner-modal') || clicked.parents().is('.inner-modal')){
                  return;
              } else { $('#overlay-modal').hide();
          }
      });
   });
  </code></pre>
  
  <p>this is what i currently have. I tried to add an anchor tag at the bottom of where i would like the page to stay but this didnt work. I also try moving the form's location on the page.</p>