I am developing a mobile app using Sencha Touch 2 and Cordova 2.3.0. I would like to be able to open all external links (from dynamically loaded HTML) into the new InAppBrowser.
Is there a way to achieve this without having to modify all external links to contain target="_blank"?
I would like to intercept clicks on external links and open them using the window.open API from InAppBrowser. Since I target both iOS and Android, I guess a javascript solution would be better to avoid separate codes (Java and Objective-C).
Thanks!
update: I just found this: https://gist.github.com/4694032
The only trouble with this is that I don't use jQuery in my app. Is it worth it to include it just for this matter?