I’d like to run this script, but only when iPhone is not in full screen mode.
<script>
if (navigator.userAgent.indexOf('iPhone') != -1) {
addEventListener("load", function() {
setTimeout(hideURLbar, 0);
}, false);
}
function hideURLbar() {
window.scrollTo(0, 1);}
</script>
So how can I do that? (Could this help?)
1 Answer