Hiding the address bar in the Firefox mobile browser

I tried various scrollTo () solutions that hide the address bar in a mobile browser, but none of them work at all in mobile Firefox.

Is there any other trick to use in this situation?

+4
source share
4 answers

To achieve this, you must make the browser go into full screen mode.

For mobile FF you need to create a manifest and there:

"fullscreen": "true" 

https://developer.mozilla.org/en-US/Apps/Build/Manifest#fullscreen

+1
source

No, there is currently no way to do this in mobile Firefox. Even the scrollTo () trick or manifest file.

0
source

If you are responsible for writing the pages you want to get in full screen mode, you can run these bit-bit code to use the API:

 function setFullScreen(el) { if (el.requestFullscreen) { el.requestFullscreen(); } else if (el.msRequestFullscreen) { el.msRequestFullscreen(); }else if (el.mozRequestFullScreen) { el.mozRequestFullScreen(); }else if (el.webkitRequestFullscreen) { el.webkitRequestFullscreen(); } } function exitFullScreen(){ if (document.exitFullscreen) { document.exitFullscreen(); } else if (document.msExitFullscreen) { document.msExitFullscreen(); }else if (document.mozCancelFullScreen) { document.mozCancelFullScreen(); }else if (document.webkitCancelFullScreen) { document.webkitCancelFullScreen(); } } function toggleFullScreen(){ if(!document.fullscreenElement && !document.msFullscreenElement && !document.mozFullScreenElement && !document.webkitFullscreenElement){ setFullScreen(document.documentElement); }else{ exitFullScreen(); } } 
0
source

And such a browser is considered good. This is a heresy of programming.

-1
source

All Articles