Rank: Newbie Groups: Member
Joined: 11/22/2018 Posts: 6
|
Is it possible get return value from Javascript extension ?
javascript :
let text = getText();
c#
webView1.RegisterJSExtensionFunction("getText", new JSExtInvokeHandler(WebView_JSGetText))
string WebView_JSGetText(object sender, JSExtInvokeArgs e) { return "text" }
like this
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,218
|
Hi, You would do this in your WebView_JSGetText:
Thanks!
|