Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
handling links in a webview
## jQuery [plain_text]
Make sure you make a reference to the jQuery library in the header of your HTML. Also remember that you must load the HTML into the WebView from a local file.
## This event definition goes in you app.js [javascript]
## This JQuery goes in the HTML file [javascript]
var theURL=this.getAttribute('href');
var eventObject = new Object;
var a = 'URL';
eventObject[a] = theURL;
// Fire Titanium Event to Open the URL in a new Window
return false;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.