on page refresh scroll to top code example Example: refresh page scrolltop 0 $(document).ready(function(){ $(this).scrollTop(0); });