Open a webpage in an external browser from the IPAD telephone application

Possible duplicate:
phonegap: open an external link in Safari, not the UIWebView application

I made an HTML5 application for my iPad. this is done natively with telephone service. In my application, I have external links to web pages. However, when I open these links, the external web page opens in my application, and since my iPad does not have a back button, there is no way to return to my application. Even when I close the application and then open it again, the external opens webpage.

I tried to solve the problem with childbrowser, but I have the same problem. Here is the code I used:

openChildBrowser('http://en.wikipedia.org/wiki/Lapis_lazuli',{ showLocationBar: true });">text here</a>

and

<a onclick= "window.plugins.childBrowser.showWebPage('http://en.wikipedia.org/wiki/Lapis_lazuli',{showLocationBar: true});">text here</a>

and of course I tried the usual href. Does anyone have a solution to my problem? Thank you for your time:)

+3
source share
1 answer

I had the same problem. I solved this by adding target = "_ blank" to the a tag, like this.

<a href="http://en.wikipedia.org/wiki/Lapis_lazuli" target="_blank">text here</a>

Hope this helps.

+5
source

All Articles