Return to Snippet

Revision: 43749
at March 30, 2011 07:03 by vagrantradio


Initial Code
jQuery(window).load(function() {
		/mobile/i.test(navigator.userAgent) && document.documentElement.scrollTop === 0 && !pageYOffset && !location.hash && setTimeout(function () {
  			window.scrollTo(0, 1);
		}, 1000);
	});

Initial URL
http://remysharp.com/2010/08/05/doing-it-right-skipping-the-iphone-url-bar/

Initial Description
Hide the url bar on page load in webkit mobile browsers.

Initial Title
Hide Mobile URL Bar On Load

Initial Tags
mobile

Initial Language
jQuery