javascript - Is it possible to hide the address bar in Safari on iPhone? - Stack Overflow

I saw that it was impossible in iOS7 but now with iOS9. Is it possible to hide the address bar with jav

I saw that it was impossible in iOS7 but now with iOS9. Is it possible to hide the address bar with javascript?

I want to do this for the iPhone and iPad users.

Thanks!

I saw that it was impossible in iOS7 but now with iOS9. Is it possible to hide the address bar with javascript?

I want to do this for the iPhone and iPad users.

Thanks!

Share Improve this question asked May 16, 2016 at 19:58 ChantalChantal 411 gold badge1 silver badge2 bronze badges 0
Add a ment  | 

2 Answers 2

Reset to default 1

You can declare display mode in Web App Manifest.

"display": "standalone"

The application will look and feel like a standalone application. This can include the application having a different window, its own icon in the application launcher, etc. In this mode, the user agent will exclude UI elements for controlling navigation, but can include other UI elements such as a status bar.

The only gotcha is that user has to add your web app to homescreen first.

Is this for you are looking for? http://pastebin./16s8Xvbw

<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=1">
<style>
body { height: 100vh; padding: 0; margin: 0; }
div.content { height: 100%; }
div.spacer { height: 1px; }
</style>

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

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745431304a4627402.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信