Is it possible to hide JavaScript in iOS 9 (Safari browser) using JavaScript?

I want to hide a URL string from a single application using JavaScript.

I tried to set the body element to a large height and then execute:

window.scrollTo(0, 0);

But that will not work. The URL bar is still visible. Can someone tell me how to solve this problem?

+4
source share
2 answers

For iPhone, you can make your content one pixel higher than the viewing area, which will eliminate navigation.

Sample working code: http://pastebin.com/16s8Xvbw

Cautions:

  • - , .
  • /, .
  • iPad .
+3
+3

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


All Articles