mobile menu
Site icon

The Tech Galaxy

Live support

How to Enable JavaScript in Webview Android 

Monday, November 20, 2023, 4 AM

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"


No comments found.