Skip to content

Instantly share code, notes, and snippets.

@saucer-jp
Created August 8, 2012 04:44
Show Gist options
  • Save saucer-jp/3292127 to your computer and use it in GitHub Desktop.
Save saucer-jp/3292127 to your computer and use it in GitHub Desktop.
js: mobile safari status bar hide
<script type="text/javascript">
function hideURLbar() { window.scrollTo(0,1); }
addEventListener('load', function() { setTimeout(hideURLbar, 0); }, false );
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment