Elad
Elad

Reputation: 426

hide url bar on ipad

After a deep search, I still can't hide the URL bar in my IPAD web app.

please help

I tried to add:

meta name="apple-touch-fullscreen" content="yes"

meta name="apple-mobile-web-app-capable" content="yes"

But it works only if I add the site to my home screen...

Thanks,

Upvotes: 0

Views: 736

Answers (1)

Tak
Tak

Reputation: 11704

The only suggested fix for this I've come across is scrolling the web page down to hide the URL bar. This can be achieved with Javascript:

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

Source article

Upvotes: 1

Related Questions