JavaScript: hideaddressbar

Published on

/* * Normalized hide address bar for iOS & Android * (c) Scott Jehl, scottjehl.com * MIT License */ (function( win ){ var doc = win.document; // If there’s a hash, or addEventListener is undefined, stop here if( !location.hash && win.addEventListener ){ //scroll to 1 window.scrollTo( 0, 1 ); var scrollTop = 1, getScrollTop = … Continue reading JavaScript: hideaddressbar