Hi,
I am trying to call a javascript function on a page using the following code from a Windows app:
Dim objMSHTML2 As New mshtml.HTMLDocument
'I'm not sure what code should go in here
objMSHTML2.parentWindow.FunctionOnThePage("1")
The scenario is that the browser is already open on the page that contains the function being called ("FunctionOnThePage").
How do I tell objMSHTML2 to point to the browser instance that I want so that the function can be accessed?
Thanks in advance!
Regards,
CB