How to hide the address bar and toolbar on the page under the mobile safari?

Mobile browser opens Baidu, swipes fingers up, browser address bar and toolbar are automatically hidden, and swiping down returns to normal. May I ask you Daniel how to achieve this effect? Do you want to call some API or meta tag?

Mar.06,2021

isn't this a function of safari ? And h5 should have nothing to do with


should be the properties of the browser, h5 can not do, unless your address bar and toolbar belong to your h5 page


if your H5 page contains headers and bottoms, you can listen to the page's up and down slide events to show hidden. How to monitor slippery screen events, their own Baidu bar.


only allows the address bar to exist all the time, as long as the height of the body does not exceed the height of the viewport, the address bar will not be hidden.


has the landlord solved this problem?


has the problem been solved?


Boss, I have the same need. Have you solved it?

Menu