最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Hide address bar in iPad - Stack Overflow

programmeradmin1浏览0评论

I know you can hide the address bar on iPhone/iPad/Android using the window.scrollTo thing. However, nothing seems to get rid of the address bar on iPad. The only workaround I found was to add a meta tag and then let the user add the page to their home screen.

Am I missing something? Can you hide the address bar on iPad safari using some other trickery?

I know you can hide the address bar on iPhone/iPad/Android using the window.scrollTo thing. However, nothing seems to get rid of the address bar on iPad. The only workaround I found was to add a meta tag and then let the user add the page to their home screen.

Am I missing something? Can you hide the address bar on iPad safari using some other trickery?

Share Improve this question asked Sep 16, 2011 at 19:27 David HellsingDavid Hellsing 109k44 gold badges180 silver badges214 bronze badges 2
  • Reference to window.scrollTo() code. – epascarello Commented Sep 16, 2011 at 19:56
  • If you don't mind me asking, why would you want to do this? To me, it feels like an extremely horrible idea to muck around with the user experience of the users browser, and hiding the address bar themselves isn't very hard, is it? – Andreas Eriksson Commented Jan 3, 2013 at 13:50
Add a ment  | 

1 Answer 1

Reset to default 4

It seems only be possible with the workaround you mentioned:

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

Ref #1 Ref #2

发布评论

评论列表(0)

  1. 暂无评论