Open external url on iOS native app if target=_blank not working?!

2,205 views
Skip to first unread message

Tristan Lins

unread,
Feb 4, 2011, 8:05:05 AM2/4/11
to phonegap
I try to open external urls from my web app in the native browser.
Everyone says "just add target="_blank" to the link", i do this, and
it works if i open the app from a web page.
Even if i added it to the home screen, start the app and press the
link, the native browser open seperated from the app.
But if i create my native app, external links are always opened inside
the app window (maybe in an "invisible" tab). I tried window.open()
but this have no effect as well.
I use xcode 3.2, phonegap 0.9.3 + jqtouch revision 161, but even if i
create a "blank" index.html, that only include phonegap.js the links
does not open in the native browser ...

google and co are no good friends because the only answer i found is
"add target="_blank" to the link", but it does not work in the native
app!

Thanks for help, i'm new to phonegap and just confused about this.
Tristan

Alan

unread,
Feb 12, 2011, 12:05:34 AM2/12/11
to phonegap
Unfortunately, there's a bit more you need to do. Jessie MacFadyen
addressed it in his response to another person's question:
http://groups.google.com/group/phonegap/browse_frm/thread/7815d5e103fc18ac/a3ba58b1002af281?#a3ba58b1002af281
Reply all
Reply to author
Forward
0 new messages