iPhone for address bar to scroll-up with jQuery

[javascript]
$(document).ready(function(){

// check if mobile screen
if ($(window).width() < 700) {

// if mobile, force the address bar to scroll-up
setTimeout(function () {
window.scrollTo(0, 1);
}, 1000);

}

});
[/javascript]

Leave a Reply