Open a webpage in full screen on Safari on iOS

Safari on iOS has full screen mode. Is it possible to activate this via javascript or the like?

thanks

+5
source share
2 answers

No, there is no way to switch full screen mode in Safari on iOS using javascript.

For the web page to start in full screen mode, you need to add the following meta tag, and the page must be launched from a bookmark on the main screen:

<meta name="apple-mobile-web-app-capable" content="yes"> 

However, you can determine if the page is working in full screen mode or not using javascript using the read-only property:

 window.navigator.standalone 
+6
source

It looks like you can now see web pages in full screen. I moved / scrolled the web page up even after reaching the top of the web page, which then moved the search bar up and allowed me to view the web page in full screen in Safari and Firefox.

When you click on the text or page title, the web page again exits full-screen mode.

0
source

Source: https://habr.com/ru/post/1480138/


All Articles