Posted By

conspirator on 10/02/08


Tagged

javascript textmate iphone AddressBar CSS-Tricks


Versions (?)

Who likes this?

11 people have marked this snippet as a favorite

jamesming
SpinZ
stavelin
zuoky
umang_nine
mahalie
ericschweichler
chrisaiv
colingardom
drewbarontini
o0110o


Hide iPhone Address Bar Once Page is Loaded


 / Published in: Other
 

  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. }
  8. </script>

Report this snippet  

You need to login to post a comment.