How to Enable JavaScript in Webview Android 

By default, javascript is disabled in android webview. use this piece of code to enable it

WebView myWebView = (WebView) findViewById(;
WebSettings webSettings = myWebView.getSettings();

The boolean “true” sets the JavaScript enabled, to disable JavaScript, use boolean “false”


Post navigation


This site uses Akismet to reduce spam. Learn how your comment data is processed.