V
V
Vladislav Kh2018-02-13 13:27:19
JavaScript
Vladislav Kh, 2018-02-13 13:27:19

How to hide address bar in mobile?

In general, the problem is what
we have a page with a height of 100% without scrolling, respectively, such a command will simply not help us, because there is nothing to scroll, can we do this as a thread?
window.scrollTo(0, 100);

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Evgeny Zaharov, 2018-02-13
@drymind404

Either put up with the fact that you can’t just remove it, or add a button to switch to full screen mode (fullscreen api). It removes the address bar. But it will not work automatically to go to it - some user action is needed. In general, I once encountered the problem of the address bar on phones, but it all came down to this.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question