Created
July 14, 2013 20:45
-
-
Save data-enhanced/5995936 to your computer and use it in GitHub Desktop.
Quick fix to hide browser address bar in mobile safari -- Credit David Walsh -- http://davidwalsh.name/hide-address-bar
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
// Credit David Walsh | |
// http://davidwalsh.name/hide-address-bar | |
window.addEventListener("load",function() { | |
// Set a timeout... | |
setTimeout(function(){ | |
// Hide the address bar! | |
window.scrollTo(0, 1); | |
}, 0); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment