Open in native web browser

Hey there,

How can I open a link in the device’s native browser? Do I have to do it somehow with javascript or can I do it in the view with a Link tag?

Thanks.

Hey @seanhill, if you are in Cordova, take a look at the InAppBrowser plugin: http://cordova.apache.org/docs/en/3.2.0/cordova_inappbrowser_inappbrowser.md.html

Otherwise, you should be able to open a link by using <a href="http://google.com/" target="_blank">Click</a> or window.open

2 Likes

target="_blank" doesn’t seem to do it, just opens up a new view, wich is useless (and you cannot even get out of).

Here’s a solution: