Created
June 2, 2015 09:56
-
-
Save Irfan-Ansari/c45a313c80f86c440b68 to your computer and use it in GitHub Desktop.
force page to load on top - cause of refresh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* force page to load on top - cause of refresh */ | |
$(window).on('beforeunload', function(){ | |
$(window).scrollTop(0); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment