BerlinCoder Member Licensed User Mar 15, 2017 #1 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!!! Code: Copy WebView1.LoadUrl("http://google.com") Sub Button1_Click MyWebViewExtras.executeJavascript(WebView1, "document.getElementById('lst-ib').value='Test1';") End Sub
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!!! Code: Copy 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 Mar 15, 2017 #2 Can't you just enter the URL something like this? https://www.google.co.uk/#q=b4x You just need to build the 'b4x' bit above and then append to #q= That _should_ work well it does from a desktop browser (Safari) Upvote 0
Can't you just enter the URL something like this? https://www.google.co.uk/#q=b4x You just need to build the 'b4x' bit above and then append to #q= That _should_ work well it does from a desktop browser (Safari)
BerlinCoder Member Licensed User Mar 17, 2017 #3 Yeah, but it was only an example.... by the way I fixed the problem by using the last version of webviewextra. Upvote 0
Yeah, but it was only an example.... by the way I fixed the problem by using the last version of webviewextra.
eps Expert Licensed User Longtime User Mar 18, 2017 #4 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
ah sorry - didn't realise it was an example maybe post your solution or an example of your solution for all to see?