Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to hide URL bar in iOS 9 (Safari browser) by using JavaScript?

I want to hide the URL bar from my single-page application by using JavaScript.

I tried to set bigger height of the 'body' element and then perform:

window.scrollTo(0, 0);

But it doesn't work. The URL bar is still visible. How do I solve this problem?

like image 776
Aircraft5 Avatar asked Mar 14 '23 14:03

Aircraft5


1 Answers

so far it seems it doesn't work on iOS 9, it stopped working after iOS 7.1.

As seen here:

Impossible to hide navigation bars in Safari iOS 7 for iPhone/iPod touch

like image 70
Luciano Avatar answered Apr 07 '23 05:04

Luciano