About how to calculate the height of the browser's workbar or move it up

is there any way to hide the toolbar above the browser with js?
this requirement is because the search box on Xiaomi TV browser needs the mouse to pull the page to hide, so I want to use code to implement it.
the scroll bar can be scrolled to a certain location with scrollTo (), and finally the search bar of the browser on Xiaomi TV should be hidden. Is there any way to do that? Control the browser toolbar

Jul.15,2021

you can check to see if Xiaomi TV offers anything special in API, browsers.


if you press F11 full screen, there will be no toolbar. Maybe it can be regarded as a method

.
Menu