Return to Snippet

Revision: 43055
at March 16, 2011 00:34 by tmmyy


Initial Code
<script type="application/x-javascript">
if (navigator.userAgent.indexOf('iPhone') != -1) {
        addEventListener("load", function() {
                setTimeout(hideURLbar, 0);
        }, false);
}

function hideURLbar() {
        window.scrollTo(0, 1);
}
</script>

Initial URL

                                

Initial Description

                                

Initial Title
Hide iPhone address bar on load

Initial Tags
javascript, iphone

Initial Language
JavaScript