By default, it gets shown only when the device\'s menu button is pressed and when the page is swiped down (see the GIF below when the touch marker is red). Can the U
By the use of the word 'device' I'm guessing you mean a mobile device. I fought with this also and just used a shortcut to the page from the desktop of the device. Then you get full screen without the address bar.
It is possible only on user input, because of the limitations of the Full Screen API. See the demo.
var p;
function showURLBar() {
p = [window.pageXOffset, window.pageYOffset];
document.documentElement.webkitRequestFullscreen();
setTimeout(function () {
document.webkitExitFullscreen();
setTimeout(function () {
scrollTo(p[0], p[1]);
}, 300);
}, 300);
}
window.location
makes the address bar reappear, but leaving/reloading the page is an undesirable side effect. Changing only window.location.hash
or using window.history
doesn't help either, even if the URL is modified. None of window.scrollBy
, window.scrollTo
, window.scrollTop
helps.