Android
AND-401 · Question #99
How to enable JavaScript in WebView?
The correct answer is C. myWebView.getSettings().setJavaScriptEnabled(true). See the full explanation below for the reasoning.
Question
How to enable JavaScript in WebView?
Options
- AmyWebView. setJavaScriptEnabled(true);
- BmyWebView.getJavaScriptSettings.setEnabled(true)
- CmyWebView.getSettings().setJavaScriptEnabled(true);
- DJava script is always enabled in WebView
How the community answered
(31 responses)- A6% (2)
- B13% (4)
- C77% (24)
- D3% (1)
Community Discussion
No community discussion yet for this question.