Force hide address bar in Chrome on Android

JavascriptAndroidJqueryTwitter BootstrapGoogle Chrome

Javascript Problem Overview


I recently developed a website that fetches mixed http/https content. Due to this, I always get the address bar displayed on top (It doesn't auto-hide like in other websites). Here's what I'm talking about:

The Website

This is the link to the website.

The content is fetched from various sources, hence filtering non-https content is not possible. And since the website is meant for reading, a non-full-screen display is painful for the reader. So, is there a way to force the auto-hide behavior?

PS: The website uses Twitter Bootstrap, if it helps.
PPS: I don't want to use the full-screen API, it'll be too heavy for this.

Javascript Solutions


Solution 1 - Javascript

Check this has everything you need

http://www.html5rocks.com/en/mobile/fullscreen/

The Chrome team has recently implemented a feature that tells the browser to launch the page fullscreen when the user has added it to the home screen. It is similar to the iOS Safari model.

<meta name="mobile-web-app-capable" content="yes">

Solution 2 - Javascript

window.scrollTo(0,1);

this will help you but this javascript is may not work in all browsers

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionRanveerView Question on Stackoverflow
Solution 1 - JavascriptDimgerView Answer on Stackoverflow
Solution 2 - JavascriptdevendermahtoView Answer on Stackoverflow