Last Updated: February 25, 2016
·
7.439K
· codesbyaxel

How to remove the address bar in mobile browsers

With this short code of JS you can remove the address bar in all the mobile browsers - showing more of your website, and less of the browser itself.

Works on both IOS-devices and Android.

/*! Removes address bar in mobile browsers */
setTimeout(function() { window.scrollTo(0, 1) }, 100);