which does successfully execute the test function in web1's current document. However, as indicated on the MSDN reference for execScript, getting the return value of the function is not possible. Unfortunately, I do not have access to modify the web page in question, so any manipulation on that side of things is not possible (such as having the function store the result in a global, and then pulling that variable back to VB).
I have read an interesting article "How To Call a Script Function from a VC WebBrowser Application" at
. The code in the article does exactly what is needed, but the example is in Visual C++ and performing something similar in VB, if it's even possible, is beyond me.
Any help would be much appreciated.