Titanium Appcelerator Quickie: Disable links in WebView - Clearly Innovative | Web and Mobile DevelopmentClearly Innovative | Web and Mobile Development

More javascript trickery to make this work again, simple DOM manipulation worked here for me.

The javascript replace statement replace all links with code that disables the link by setting the href to an anchor.

So you get before code that looks like this

And after the script is run, it looks like this

I have used this trick along, with an embedded javascript function, to to redirect links and to fire events off back in my application. I keep the url around as an attribute of the tag so I can use it later if needed.

This trick has come in handy for me… hope you enjoy