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