Skip to content

Instantly share code, notes, and snippets.

@Stevenlitton
Created November 2, 2013 22:23
Show Gist options
  • Save Stevenlitton/7284156 to your computer and use it in GitHub Desktop.
Save Stevenlitton/7284156 to your computer and use it in GitHub Desktop.
Loads the page at the top, adding the second function will make it work on refresh
$(document).scrollTop(0);
$(function() {
window.location.href = "#topDiv";
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment