Posted by & filed under iPhone, Open-source, Web Development. 4,109 views

After much trial & error, I figured out how to do this on iOS 6, PhoneGap/Cordova 2.5.0 and jQuery 1.9.1

  • OpenAllWhitelistURLsInWebView doesn’t matter. Setting it to true, false or omitting it doesn’t seem to have any bearing on the result.
  • I set a target of _system on the href, like so:

    <a target="_system" href="">

  • I then call:

    $("a[target='_system']").click(function(event) {
    event.preventDefault();$(this).attr("href"), "_system");

And it just works! On iPad & iPhones.