Android Question problem with running javascript in webview

BerlinCoder

Member
Licensed User
Hi, after I load a url in webview , I try to run following JS code to put something in google search box. But, after running the code, webview changes to value and only show the value!!!

B4X:
    WebView1.LoadUrl("http://google.com")

Sub Button1_Click
   
    MyWebViewExtras.executeJavascript(WebView1, "document.getElementById('lst-ib').value='Test1';")

End Sub
 

eps

Expert
Licensed User
Longtime User
ah sorry - didn't realise it was an example :)

maybe post your solution or an example of your solution for all to see?
 
Upvote 0
Top