Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Fullscreen via Javascript on Chrome for Android (tablets)

I would like to have my web app hide the browser tabs and address bar on Chrome on mobile. document.documentElement.requestFullScreen() seems to have no effect. window.scroll(0,1) doesn't work either on tablets.

If possible, I'd also love a good solution for Chrome and/or Safari on iOS.

Any ideas? I'm on Chrome 29 for Android.

like image 393
Ben Dilts Avatar asked Sep 23 '13 19:09

Ben Dilts


People also ask

How do I make Chrome full screen on Android tablet?

Built-in Fullscreen Mode in Chrome for AndroidTapping the Menu button (three vertical dots) in the upper right-hand corner of the screen (or tap the hardware menu button on those devices having one)

How do I make a website full screen on Android?

Now, just tap the icon on your home screen to open the website in a full-frame, borderless window. You can swipe from right to left with two fingers to go back, or from left to right to go forward. You can even swipe down with two fingers to reload the page.

How do I press F11 on my tablet?

Please press the lower right corner [Fn] key to switch the number keys to [F1] to [F12] function keys.


1 Answers

Check this sample: here

try to use webkitRequestFullscreen()

Also "Lowercased the "S" in requestFullscreen() and changed document.webkitCancelFullScreen() to document.webkitExitFullscreen(). Updated browser compatibility comment." via Let-Your-Content-Do-the-Talking-Fullscreen-API

like image 144
rrelaxx Avatar answered Oct 04 '22 05:10

rrelaxx