This post is a part 12 of Intel XDK Complete Tutorial post series.
You can switch from current application to browser application by just one line of code
//pass the url of the website.
intel.xdk.device.launchExternal("http://www.google.com");
intel.xdk.device.launchExternal("http://www.google.com");
This function only works inside event handlers. So you can’t just call it whenever you like to. For example:
document.addEventListener("intel.xdk.device.ready",function(){
intel.xdk.device.launchExternal("http://www.google.com");
},false);
intel.xdk.device.launchExternal("http://www.google.com");
},false);
Make sure you have also added Intel XDK Device plugin in your app.