title: How can I load a webpage inside the phonegap webview?
body: <p>I want to be able to link to a webpage inside the phonegap webview that loads an external webpage inside the same phonegap webview. If I do this, it loads inside the webview:</p>
  
  <pre><code>public class App extends DroidGap {
     @Override
     public void onCreate (Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        super.loadUrl("http://google.com");
     }
  }
  </code></pre>
  
  <p>However, I want to have an internal page launched first, with a link to the external page, so I do this:</p>
  
  <pre><code>public class App extends DroidGap {
     @Override
     public void onCreate (Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        super.loadUrl("file:///android_asset/www/index.html");
     }
  }
  </code></pre>
  
  <p>and I have a link:</p>
  
  <pre><code>&lt;a href="#" onclick="navigator.app.loadUrl('http://google.com')"&gt;Google&lt;/a&gt;
  </code></pre>
  
  <p>but this link launches google outside the app, in the web browser, instead of in the phonegap webview. What can I do to make sure the link to the external page is launched inside the app's phonegap webview?</p>