External URL\'s don\'t open in the system\'s browser in my PhoneGap Android application. I\'m using PhoneGap Build 2.3.0.
According to the Cordova documentation I u
This worked for me. Phonegap 3.1.0.
html code:
Google it
or
Javascript (with jQuery+cordova):
$("#ext-link").on("click"), function() {
if (typeof navigator !== "undefined" && navigator.app) {
// Mobile device.
navigator.app.loadUrl('http://www.google.com/', {openExternal: true});
} else {
// Possible web browser
window.open("http://www.google.com/", "_blank");
}
});
Hope that helps.