Closing an open window on mobile safari using javascript?

In application mode, if I open a new window using javascript, the newly opened window cannot close (in the on-click event) using standard window.close () or self.close (). Does anyone know if there is an alternative method?

What I find more deceived is that it goes against Apple’s very own design principles: in essence, the site has the ability to open a new window, but the user cannot exit without closing the webapp using the Home button "

Any ideas? Thanks!

+4
source share
2 answers

JavaScript: window.self.close () how to do this.

0
source

you can try this piece of js code. var win = window.open('','_self'); win.close();

0
source

All Articles