url in WebView
Here I have simple code:
var webview = Titanium.UI.createWebView({url:'http://appcelerator.com'});
var window = Titanium.UI.createWindow();
webview.addEventListener('beforeload', function(e){
alert(e.source.url);
});
window.add(webview);
window.open();
Why the url is not changing when I click on the link?