title: Using Cordova, how can I open external URLs in Chrome, instead of the in-app browser?
body: <p>This question has been asked <a href="https://stackoverflow.com/questions/15534630/phonegap-build-how-to-open-external-url-in-device-browser-on-android">a few</a> <a href="https://stackoverflow.com/questions/32208609/cordova-why-would-inappbrowser-plugin-be-required-to-open-links-in-system-brows/32227524#32227524">times</a> <a href="https://stackoverflow.com/questions/16454263/how-can-i-open-a-url-in-external-browser-using-phonegapcordova-in-sencha-touch">before</a>, but all of the solutions date back to 2013, and I haven't got any of those answers to work with the latest versions of PhoneGap Build / Cordova.</p>
  
  <p>I have a link like this which I want to open in Chrome on Android.</p>
  
  <pre><code>&lt;a href="https://twitter.com/humphreybc" target="_blank"&gt;Twitter&lt;/a&gt;
  </code></pre>
  
  <p>In <code>config.xml</code> I have the following rules:</p>
  
  <pre><code>&lt;allow-navigation href="*" /&gt;
  &lt;allow-intent href="http://*/*" /&gt;
  &lt;allow-intent href="https://*/*" /&gt;
  &lt;access origin="*" /&gt;
  </code></pre>
  
  <p>I have tried using <code>window.open(url, _system)</code> as suggested in other answers – and included the <code>cordova-plugin-inappbrowser</code> plugin –  however:</p>
  
  <ol>
  <li>This solution doesn't seem to work, links just open in the in-app browser</li>
  <li>I'd rather simply use target="_blank" instead of using an onClick handler for each link</li>
  </ol>
  
  <p>I've also followed the instructions <a href="http://weblog.west-wind.com/posts/2015/Jul/02/External-Links-in-Cordova-for-iOS" rel="nofollow noreferrer">in this blog</a> and added a handler for links with the <code>_target='blank'</code> attribute:</p>
  
  <pre><code>$(document).on('click', 'a[target="_blank"]', function (e) {
    e.preventDefault();
    var url = this.href;
    window.open(url,"_system");                    
  });
  </code></pre>
  
  <p>...but still the links open in the in-app browser.</p>