title: How to load javascript without affecting your baseURL in webview?
body: <p>I am trying to load url(Text from assets) in <code>WebView</code> then I set textSize &amp; margin to that <code>WebView</code>, using javascript.</p>
  
  <p>But When I do that I don't see my "Text from assets" and see only javascript-function as a string!</p>
  
  <pre><code>webview.setWebViewClient(new WebViewClient()
      {
          @Override
          public void onPageFinished(WebView view, String url)
          {
              super.onPageFinished(view, url);
              int size = ((miSizeLevel + 1) * 5);
              int margin = ((miMarginLevel + 1) * 5);
              view.loadUrl("javascript:document.getElementsByTagName('body')[0].style.fontSize = '" + size + "px';");
              view.loadUrl("javascript:document.getElementsByTagName('body')[0].style.margin = '" + 10 + "px " + 10 + "px " + 10 + "px " + 10 + "px';");
          }
      });
      webview.loadUrl("file:///android_asset/input.html");
      return rootView;
  }
  </code></pre>
  
  <p>Here is my webview screenshot :</p>
  
  <p><a href="https://i.stack.imgur.com/F6ann.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/F6ann.png" alt="webview"></a></p>
  
  <p>Where I am going wrong?
  Please suggest...</p>