List of usage examples for android.webkit WebSettings getJavaScriptEnabled
public abstract boolean getJavaScriptEnabled();
From source file:android.webkit.AccessibilityInjector.java
/** * @return {@code true} if JavaScript is enabled in the {@link WebView} * settings./*from w w w . jav a 2 s. c o m*/ */ private boolean isJavaScriptEnabled() { final WebSettings settings = mWebView.getSettings(); if (settings == null) { return false; } return settings.getJavaScriptEnabled(); }