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 02 Answers
Reset to default 1You 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条)