admin管理员组文章数量:1389812
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
1 Answer
Reset to default 4It seems only be possible with the workaround you mentioned:
<meta name="apple-mobile-web-app-capable" content="yes" />
Ref #1 Ref #2
本文标签: javascriptHide address bar in iPadStack Overflow
版权声明:本文标题:javascript - Hide address bar in iPad - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744684392a2619608.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论