Last Updated: February 25, 2016
·
7.698K
· 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);

Have a fresh tip? Share with Coderwall community!

Post
Post a tip
Related Tags
#javascript
Did you know?

JavaScript on a page runs with the privileges of that origin. One altered library, tag manager, or snippet can read inputs, change what people see, and call your APIs as the user.

Security insights from Cside