Tuesday, June 4, 2024
 Popular · Latest · Hot · Upcoming
104
rated 0 times [  111] [ 7]  / answers: 1 / hits: 33622  / 11 Years ago, wed, september 18, 2013, 12:00:00

In previous versions of iOS, <a> tags would open Mobile Safari, and you had to intercept those to instead stay inside the webapp (an HTML page that has been saved to the home screen by the user).



Starting in iOS 7, all links are staying inside the WebApp. I cannot figure out how to get it to open Safari, when I really want it to.



I've tried using window.open and a target=_blank but neither works.



Here is a sample. https://s3.amazonaws.com/kaontest/testopen/index.html



If you save that to your home screen in iOS 6, the link opens Safari. But in iOS 7, it doesn't.



Note that this is the OPPOSITE question that everyone is usually asking (how to NOT open Safari). That behavior seems to be the new default, and I can't figure out how to get the old behavior back!


More From » ios

 Answers
4

Having an anchor tag with target _blankwill work in iOS 7.0.3 but using window.open will not work and will remain to open within the webview in 7.0.3:



window.open('http://www.google.com/', '_blank');

[#75613] Tuesday, September 17, 2013, 11 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
rociom

Total Points: 287
Total Questions: 88
Total Answers: 101

Location: Oman
Member since Wed, Nov 17, 2021
3 Years ago
;