Hide address bar on mobile devices

2

Is there any way to hide the address bar in mobile browsers?

    
asked by anonymous 23.03.2016 / 15:23

1 answer

3
Unfortunately, "native" does not. This is a behavior that only the browser itself can use. Chrome for example hides when the user scrolls the page. (I believe others do the same).

To "circumvent" this need there are other resources you can use:

  • View the fullscreen page using the Fullscreen API , the problem of this solution is that to initialize the functionality it is necessary the action of the user (like pressing on any specific button or key).

  • "Imitate" the scroll action. This solution will hide the navigation bar in browsers that have this behavior when scrolling the page down. However when the user scrolls up again the bar will appear. Just add this code after your page loads: window.scrollTo(0,1); . Note: You will also depend on your page having "space" for the scroll.

  • 24.03.2016 / 05:31