With just one line of code you can open browser inside a Intel XDK app.
//1. Url of the website.
//2&3. Portrait X and Y position of the close button.
//4&5. Landscape X and Y position of the close button.
//6&7. Height and width of the close button.
intel.xdk.device.showRemoteSiteExt("http://www.google.com/",280,0,50,50,60,60);
//This event is fired when the browser is closed.
window.addEventListener("intel.xdk.device.remote.close", function(){});
The webpage is actually displayed in a new webview. When the close button in the new webview is clicked it returns to the original web view.
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.showRemoteSiteExt(“http://www.google.com/”,280,0,50,50,60,60);
},false);
Make sure you have also added Intel XDK Device plugin in your app.