I display a webpage (not mine) in a webview. There is a Textarea, in which I need to put some text.
<TEXTAREA NAME="app1" ROWS="3" style="width:95%" TABINDEX="1"
onKeyDown="javascript:return gerTouch(event);"
onKeyUp="javascript:verif(app1,300,true);"
onBlur="javascript:effacer();">TEXT TO CHANGE</TEXTAREA>
Is it possible, with addJavascriptInterface, to rewrite the existing onKeyDown (or another one) function, in order to put my text in the desired place ?
Something like :
webview1.addJavascriptInterface(new Object()
{
public void verif(String strl,int i,boolean b)
{
//Some code ?
}
}, "ok");
The textarea's name changes at each loading, and I cannot access the html textarea with another way. Any other suggestion would be welcome :-) (my goal: put a value in a webview's textarea : Put text inside a textarea in a webview)