Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to show address bar again after exiting fullscreen on Android

I use a HTML5 fullscreen plugin (https://github.com/kayahr/jquery-fullscreen-plugin) to view a website on request in fullscreen.

This works great - however, when I exit the fullscreen via plugin, I only see the very top bar, but not the address bar.

If I rotate the device into landscape and back into portrait mode, the address bar shows up, but I cannot expect users to know (and do) that.

How can I tell Chrome on Android to show up the address bar after programatically exiting fullscreen?


Initial state enter image description here

Address bar missing after exiting fullscreen enter image description here

like image 913
Simon Ferndriger Avatar asked Jul 19 '16 07:07

Simon Ferndriger


People also ask

How do I exit full screen on Android?

Exit full screen Tap the video. At the bottom of the player, tap full screen exit .

Which Android browser supports full screen?

Chrome Beta for Android has been updated with support for full screen browsing. The toolbar on the top disappears in this mode, letting the device display as much of the webpage as it can. Users can now also view their search terms in the omnibox instead of the lengthy search URL and the in-page Google search box.

How to Make Android Chrome full screen?

Built-in Fullscreen Mode in Chrome for Android Tapping 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)


1 Answers

To force the address bar to show again try window.scrollTo(0, 0); to force the browser to scroll which reveals the address bar. This is a kind of hacky solution.

like image 155
Raymond Avatar answered Oct 13 '22 12:10

Raymond