title: How to call javascript function from java when webview page is different
body: <p>I am working on an android project using HTML and webview to display.</p>
  
  <p>I have</p>
  
  <pre><code>display.loadUrl("file:///android_asset/index.html");
      display.setWebViewClient(new WebViewClient() {
  
          public void onPageFinished(WebView view, String url)
          {
              display.loadUrl("javascript:openDialog()");
          }
      });
  </code></pre>
  
  <p>and this works perfectly. But the javascript function i want to call is in another page (chat.html). How do i call the javascript functions on this pages from java?</p>