title: Javascript not working in Android webview
body: <p>I'm new to Android Studio, and have run into a problem that I can't fix.</p>
  
  <p>I'm trying to run a HTML file in a webView, but for some reason it keeps reloading to my startpage/index file, when I try to call specific HTML that includes a specific JS file.</p>
  
  <p>Note: these files work fine in every desktop and mobile browser, and works on UIWebView in an Apple App.</p>
  
  <p>My MainActivity looks like this:</p>
  
  <pre><code>MyWeb = (WebView) findViewById(R.id.myWebView);
  MyWeb.setWebViewClient(new WebViewClient())
  MyWeb.getSettings().setJavaScriptEnabled(true);
  MyWeb.getSettings().setSaveFormData(true);
  MyWeb.getSettings().setDomStorageEnabled(true);
  MyWeb.getSettings().setJavaScriptCanOpenWindowsAutomatically(true);
  MyWeb.loadUrl("URL");
  </code></pre>
  
  <p>If I remove the "MyWeb.setWebViewClient(new WebViewClient())" part, the file works, but the app launches a browser with an address bar.</p>
  
  <p>Please help - I've allready spend more days trying to fix this, than I care to admit.</p>