admin管理员组文章数量:1208155
Is it possible to check using JavaScript or CSS if a page has been added to the iPhone homescreen in webapp mode. Like getting the height of the screen which wouldn't have the nav bar so would be 460px
Is it possible to check using JavaScript or CSS if a page has been added to the iPhone homescreen in webapp mode. Like getting the height of the screen which wouldn't have the nav bar so would be 460px
Share Improve this question edited Jul 14, 2012 at 6:57 ThinkingStiff 65.3k30 gold badges147 silver badges241 bronze badges asked Jan 28, 2011 at 16:36 Jonathan.Jonathan. 55.5k55 gold badges196 silver badges300 bronze badges1 Answer
Reset to default 26You're looking for window.navigator.standalone
(mentioned by Apple here)
This won't tell you if the page has been added to the homescreen if it is being visited in the regular browser, but it will tell you if it has been launched from the homescreen.
本文标签: javascriptCheck if page added To iPhone homescreenStack Overflow
版权声明:本文标题:javascript - Check if page added To iPhone homescreen - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1738747664a2110214.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论