Skip to content Skip to sidebar Skip to footer

Inappbrowser Event.url Always Undefined

Do you have any idea why event.url always undefined? This is for loadstart and loadstop. The google page was displayed fine on pop up window. var ref = window.open('http://google.c

Solution 1:

var ref = window.open('http://google.com', '_blank', 'location=yes');
ref.addEventListener('loadstart', function(event) { alert('start: ' + event.url); });
ref.addEventListener('loadstop', function(event) { alert('stop: ' + event.url); });
ref.addEventListener('exit', function(event) { alert(event.type); });

The callback function is called when the event is fired. The function is passed an InAppBrowserEvent object.


Post a Comment for "Inappbrowser Event.url Always Undefined"