I am using Android and I have an HTML file which contains some Javascript. However, I am not able to get the Javascript code to execute. What do I need to do in order to run this code? Thanks in advance for any help.
3 Answers
@raj asked for credible and/or official sources
@CommonsWare answered:
Call
getSettings().setJavaScriptEnabled(true)on yourWebView
A simple search for the Android documentation provides the following official sources:
Comments
Here are few sources that will be surly helpful to you.
- Android Calling JavaScript functions in WebView
- call javascript inside webview.
- calling javascript function.
Hope this links will be helpful to you.