title: Open url in webview - phonegap
body: <p>I would like to know how can I open an url in the app context of embed webview. Currently this demo will open a new tab in external browser, so, not what I am expected. I am using google.com just for testing.</p>
  
  <p>Summary, I am looking for a functional demo.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  
  &lt;!-- config.xml reference: https://build.phonegap.com/docs/config-xml --&gt;
  &lt;widget xmlns     = "http://www.w3.org/ns/widgets"
          xmlns:gap = "http://phonegap.com/ns/1.0"
          xmlns:android = "http://schemas.android.com/apk/res/android"
          id        = "com.xxx.xxxxx"
          version   = "1.0.0"&gt;
  
      &lt;preference name="stay-in-webview" value="true" /&gt;
  
      &lt;access origin="*" browserOnly="true" subdomains="true" /&gt;
  
      &lt;content src="index.html" /&gt;
  
      &lt;allow-navigation href="https://google.com/*" /&gt;
  
      &lt;gap:plugin name="cordova-plugin-whitelist" source="npm" version="~1" /&gt;
      &lt;gap:plugin name="org.apache.cordova.inappbrowser" /&gt;
      &lt;gap:plugin name="org.apache.cordova.splashscreen" /&gt;
  
      &lt;preference name="phonegap-version"           value="cli-5.4.1" /&gt;
      &lt;preference name="permissions"                value="none"/&gt;
      &lt;preference name="target-device"              value="universal"/&gt;
      &lt;preference name="fullscreen"                 value="true"/&gt;
  
  &lt;/widget&gt;
  </code></pre>
  
  <hr>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
      &lt;head&gt;
          &lt;link rel="stylesheet" type="text/css" href="css/index.css" /&gt;
      &lt;/head&gt;
      &lt;body&gt;
          &lt;div&gt;
              &lt;script type="text/javascript" charset="utf-8"&gt;
                  document.addEventListener("deviceready", onDeviceReady, false);
  
                  function onDeviceReady() {
                      window.location.href = 'https://google.com';
                  }
              &lt;/script&gt;
          &lt;/div&gt;
          &lt;script type="text/javascript" src="cordova.js"&gt;&lt;/script&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Update:
  Complete xml file:
  <a href="https://codeshare.io/Vw3Fl">https://codeshare.io/Vw3Fl</a></p>