i have this sub that executejavascript inside webview
but it seems i cannot inject the edittext1.text to javascript string how possible i can pass a string inside the javascript variable in this case ?
B4X:
Dim Javascript As String
Dim message As String
message = EditText1.text
Javascript=$"addmssage('samer', 'message');"$
'Log(Javascript)
WebViewExtras1.executeJavascript(WebView1, Javascript)
but it seems i cannot inject the edittext1.text to javascript string how possible i can pass a string inside the javascript variable in this case ?