How do I hide the address bar on iPhone?

前端 未结 11 930
情话喂你
情话喂你 2020-12-02 12:37

How do I hide the address bar on iPhone?

I tried two different methods so far:

  • The scroll down one pixel trick with JavaScript on page load

11条回答
  •  暖寄归人
    2020-12-02 13:07

    I have been searching around on this full screen web app as well and i found this.

    http://www.onlywebpro.com/2015/07/19/optimizing-full-screen-mobile-web-app-for-ios/

    1. Basically you need add the following in your header:
    
        
    //App name
    
    
    
    
    
    
    //APP ICONS 
    
    
    
    
    
    
    
    
    1. Open the site in Safari
    2. Tap on the "Open with" icon ( arrow pointing upwards and box below it) beside refresh button at the URL bar
    3. Select "Add to home screen"
    4. Go to the homescreen and open the "App name"
    5. Voila! website with no URL bar or navigation buttons!

提交回复
热议问题