Hide iPhone Address Bar Once Page is Loaded


/ Published in: Other
Save to your folder(s)



Copy this code and paste it in your HTML
  1. <script type="text/javascript" charset="utf-8">
  2. addEventListener('load', function() {
  3. setTimeout(hideAddressBar, 0);
  4. }, false);
  5. function hideAddressBar() {
  6. window.scrollTo(0, 1);
  7. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.