A
A
Andrey Makushkin2020-08-03 17:17:44
JavaScript
Andrey Makushkin, 2020-08-03 17:17:44

How to minimize safari & chrome mobile ios address bar?

Can you please tell me how to minimize the address bar on click in mobile browsers on ios?
I tried different solutions, how to minimize it in general, for example, meta tags

<meta name="apple-mobile-web-app-status-bar-style" content="yes" />
<meta name="mobile-web-app-capable" content="yes" />
<meta name="viewport" content="minimal-ui" />

and scroll emulation did not help window.scrollTo(0, window.pageYOffset + 1);

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
Tyler Lowell, 2020-08-03
@tdesu

Try like this:

window.addEventListener("load",function() {
    setTimeout(function() {
        window.scrollTo(0, 1);
    }, 1000);
});

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question