--
-- You received this message because you are subscribed to the Google
Groups "phonegap" group.
To post to this group, send email to phon...@googlegroups.com
To unsubscribe from this group, send email to
phonegap+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/phonegap?hl=en?hl=en
For more info on PhoneGap or to download the code go to www.phonegap.com
To compile in the cloud, check out build.phonegap.com
---
You received this message because you are subscribed to a topic in the Google Groups "phonegap" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/phonegap/e5_5unC2fYs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to phonegap+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
var ref = window.open( 'http://apache.org', "_blank", "location=yes" );
ref.addEventListener( 'loadstop', function () {
ref.close();
})
There are 2 different ways to open URL in android and iphone.
FOR IOS use following code.
window.open("http://google.com", '_system');
and for android OS use following code.
navigator.app.loadUrl("http://google.com", {openExternal : true});
I found answer here: http://stackoverflow.com/questions/17887348/phonegap-open-link-in-browser
As of version 3.0, Cordova implements device-level APIs as plugins. Use the CLI's plugin
command, described in The Command-line Interface, to add or remove this feature for a project:
$ cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser.git
$ cordova plugin rm org.apache.cordova.core.inappbrowser