Posted By

gbot on 05/11/11


Tagged

mobile app mode


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

gbot


Scroll mobile browser window to hide location bar


 / Published in: JavaScript
 

  1. window.addEventListener('load', function(){
  2. if (location.hash.length == 0) {
  3. setTimeout(scrollTo, 0, 0, 1);
  4. }
  5. }, false);

Report this snippet  

You need to login to post a comment.