/ Published in: jQuery

Hide the url bar on page load in webkit mobile browsers.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
jQuery(window).load(function() { /mobile/i.test(navigator.userAgent) && document.documentElement.scrollTop === 0 && !pageYOffset && !location.hash && setTimeout(function () { window.scrollTo(0, 1); }, 1000); });
URL: http://remysharp.com/2010/08/05/doing-it-right-skipping-the-iphone-url-bar/
Comments
