Skip to content

Instantly share code, notes, and snippets.

@wizardishungry
Created December 1, 2014 22:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wizardishungry/5e1e1b7695fd7057cf6e to your computer and use it in GitHub Desktop.
Save wizardishungry/5e1e1b7695fd7057cf6e to your computer and use it in GitHub Desktop.
$.index.open();
$.webView.url = "http://www.yahoo.com/";
$.webView.addEventListener('beforeload', function(e) {
alert("beforeload "+ e.url);
e.cancelBubble = true;
});
$.webView.addEventListener('load', function(e) {
alert("load "+ e.url);
e.cancelBubble = true;
});
<Alloy>
<Window class="container">
<WebView id="webView"></WebView>
</Window>
</Alloy>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment