Posted by & filed under iPhone, Open-source, Web Development. 3,249 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="http://rads.stackoverflow.com/amzn/click/B009CZICQ8">

  • I then call:

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

And it just works! On iPad & iPhones.