I have a vb6 application,
I make a function call with WebBrowser script but I need to get the return value of that function
my current function is
execScript method of WebBrowser.Document.ParentWindow to
call your JavaScript code.Now retrieve value of the variable via
WebBrowser.Document.Script.
in VB6.
Private Sub cmdJsFunc_Click()
Dim retVal As String
Call WebBrowser1.Document.parentWindow.execScript("v = function(){return 3.14;}; tempJsVar=v();")
retVal = WebBrowser1.Document.Script.tempJsVar
MsgBox retVal
End Sub