Skip to content

Instantly share code, notes, and snippets.

@macdonst
Created December 10, 2012 21:54
Show Gist options
  • Save macdonst/4253717 to your computer and use it in GitHub Desktop.
Save macdonst/4253717 to your computer and use it in GitHub Desktop.
What's new in PhoneGap Android 2.3.0
var ref = window.open('http://google.com', '_blank');
ref.addEventListener('loadstart', function(event) { alert(event.type + ' - ' + event.url); } );
ref.addEventListener('loadstop', function(event) { alert(event.type + ' - ' + event.url); } );
ref.addEventListener('exit', function(event) { alert(event.type); } );
// also, you can do ref.removeEventListener('loadstart', myfunc) .. etc
@revolunet
Copy link

nice thanks !
Is it a fullscreen chromeless window ?
and if so, how would we add a "close" button ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment