Javascript: always show Chrome address bar

Alexander

How to enable "always show" address bar in Chrome on a mobile device using Javascript?
In other words, don't hide when the user scrolls down.

Randy

You can create a div, set the height to 100% and use overflow-y:auto;.

If you would copy this code and paste it into your project, you will see this is what you're looking for.

Please use this with caution, I personally love that chrome hides the navigation bar.

Example:

/* You NEED to set the container height */
html, body {
  height:100%;
}

/* Then override the scrollbar by a custom scrollable element: */
.customnavigation {
  height:100%;
  overflow-y:auto;
}
<div class="customnavigation">
  <img src="http://placehold.it/150x150">
  <img src="http://placehold.it/150x150">
  <img src="http://placehold.it/150x150">
  <img src="http://placehold.it/150x150">
  <img src="http://placehold.it/150x150">
  <img src="http://placehold.it/150x150">
  <img src="http://placehold.it/150x150">
  <img src="http://placehold.it/150x150">
  <img src="http://placehold.it/150x150">
  <img src="http://placehold.it/150x150">
  <img src="http://placehold.it/150x150">
  <img src="http://placehold.it/150x150">
  <img src="http://placehold.it/150x150">
  <img src="http://placehold.it/150x150">
  <img src="http://placehold.it/150x150">
  <img src="http://placehold.it/150x150">
  <img src="http://placehold.it/150x150">
  <img src="http://placehold.it/150x150">
  <img src="http://placehold.it/150x150">
  <img src="http://placehold.it/150x150">
  <img src="http://placehold.it/150x150">
  <img src="http://placehold.it/150x150">
  <img src="http://placehold.it/150x150">
  <img src="http://placehold.it/150x150">
  <img src="http://placehold.it/150x150">
  <img src="http://placehold.it/150x150">
  <img src="http://placehold.it/150x150">
  <img src="http://placehold.it/150x150">
</div>

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

How can I get a fixed address-bar in Google Chrome for Android with javascript

How do you hide the Address bar in Google Chrome for Chrome Apps?

How to clear the Google Chrome address bar?

Google Chrome address bar disappears on resize

Chrome Custom Tabs hide address bar

headless false - focus always on address bar

Hide address bar on chrome mobile

Clear item from Chrome address bar autocomplete

Google Chrome autocompletion search in address bar not working

Google Chrome does not show all results if I type a searchword into the address bar

How to hide address bar from chrome and mozilla

How to force Chrome or Firefox to always show bookmarks bar, even on sites that seem to request it hidden

show menu bar in Chrome for sites that hide it

Always show absolute path in File Explorer address bar

Show download bar in Google Chrome

How to hide address bar in Chrome?

Meaning of cookie icon in Google Chrome address bar

Javascript - IP address Show Country

Reference for all "about"/"chrome" address bar strings for Firefox and Chrome

Google Chrome always searches using top bar

What is the Hotkey to show Chrome bookmark bar?

Ctrl + A does not work in Chrome Address bar

Chrome's address bar "lock" timeout?

Custom autocomplete in Chrome address bar

Address bar always visible on mobile browsers

Ubuntu 16.04 and Chrome address bar highlight color

How to always show top bar in Xcode 11.3?

How to show the "Install Twitter" in the Chrome address bar?

Plotly: How to always show the lowest bar in front in overlay bar charts

TOP Ranking

HotTag

Archive