Project: titanium
Issue TIMOB-23503: Windows: WebView local script doesn't work for hyperlink 
[WebView local script|https://wiki.appcelerator.org/display/guides2/Communication+Between+WebViews+and+Titanium] does work for the first page, but it doesn't work on the next page where you follow its hyperlink. {code:javascript|title=Resources/app.js} var win = Ti.UI.createWindow(); var view = Ti.UI.createView({backgroundColor:'blue'}); var webview = Ti.UI.createWebView({ url: 'WebViewTestPage.htm', height: '80%', width: Ti.UI.FILL, bottom: 0 }); var button = Ti.UI.createButton({ title: 'fromTitanium', height: '10%', width: Ti.UI.FILL, top: 0, left: 0 }); button.addEventListener('click', function (e) { Ti.App.fireEvent('app:fromTitanium', { message: 'event fired from Titanium, handled in WebView' }); }); Ti.App.addEventListener('app:fromWebView', function (e) { alert(e.message); }); view.add(webview); view.add(button); win.add(view); win.open(); {code} {code:html|title=Resources/WebViewTestPage.htm}

Follow this link and see if script works

fromWebView

{code} {code:html|title=Resources/NextPage.htm}

NextPage.htm

fromWebView

{code}
Story points: 5