It seems that Cordova is already providing a solution for my problem in version 2.3.
This makes plugins like ChildBrowser obsolete.
The answer is InAppBrowser
check the following links:
stackoverflow
and the doku:
official doku
Make sure to implement this at the right spot. In my case it was a element of a listview. I implemented it like this:
$(document).bind("mobileinit", function(){
...
$('.listviewmain').delegate('li', 'tap', function(event, ui, e) {
var index = $(this).closest('li').index();
if(result.news[index].id == "ads") {
var ref = window.open('http://google.com', '_blank', 'location=no');
// attach listener to loadstart
ref.addEventListener('loadstart', function(event) {
var urlSuccessPage = "http://myloginapp/success/";
if (event.url == urlSuccessPage) {
ref.close();
}
});
}
...
}
Hope this helps :)