Webview not loading javascript
<p>I have loaded an html to the webview. I want to increase the font size of the p tag dynamically. For that I made a javascript and loaded after loading the html. But it is not working. What may be the problem??</p>

<p>Thanks in advance</p>

<pre><code>mWebView.getSettings().setJavaScriptEnabled(true);

    mWebView.setWebViewClient(new WebViewClient() {
        public void onPageFinished(WebView view, String url) {
            String javascript="all_paras    =   document.getElementsByTagName('p');\n";
            javascript=javascript+"for(i=0;i&lt;all_paras.length;i++) {all_paras[i].style.fontSize = '30px';}";
            mWebView.loadUrl("javascript:(" + javascript + ")()"); 
            System.out.println("Script executed..");
        }
    });
</code></pre>
