ExpertRefresh

Element / Window scroll  

1) Scroll down







<script src=""></script> <style> div {height: 2000px;} </style> <button id="1">Down</button> <div></div> <button id="2">Up</button> <script> $("#1").click(function () { $('html, body').animate({scrollTop:10000}, 'slow'); // animation slow }); $("#2").click(function () { $('html, body').scrollTop('0px'); // no animation }); </script>


References



n/a