Skip to content

Instantly share code, notes, and snippets.

@manikrathee
Created November 4, 2014 06:33
Show Gist options
  • Save manikrathee/00891b24eed32b51007a to your computer and use it in GitHub Desktop.
Save manikrathee/00891b24eed32b51007a to your computer and use it in GitHub Desktop.
Hide the nav bar in ios. Antiquated, terrible, probably broken by now, don't use this.
window.addEventListener("load",function() {
setTimeout(function(){
window.scrollTo(0, 0);
}, 0);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment