I have a WebView and the it loads a html page which has javascript function in it.
The WebView has some Menu’s namely, edit, refresh, next & previous.
When i press Edit, i want the javascript to do what it has to?.
When i press edit, the JS function has to show checkbox.
I am not being able to pass the value to the html page.
Any help will be appreciated.
I have a WebView and the it loads a html page which has javascript
Share
your question is not clear. You want to check a checkbox in an HTML-page after you press the edit button in an android menu?
use addJavascriptInterface to pass values from javascript to java:
http://developer.android.com/guide/webapps/webview.html
or just use webview.loadUrl(“Javascript:…”) to let javascript do something.