Java tutorial
//package com.java2s; import android.webkit.WebView; public class Main { public static void webViewLoadJs(WebView view, String url) { String js = "var newscript = document.createElement(\"script\");"; js += "newscript.src=\"" + url + "\";"; js += "document.scripts[0].parentNode.insertBefore(newscript,document.scripts[0]);"; view.loadUrl("javascript:" + js); } }