Hi, I am trying to return a JS var from a hooked IE window. so for example:
'# Get a new IE
Dim ie As New SHDocVw.InternetExplorerCl
ass
wb = CType(ie, IWebBrowserApp)
wb.Visible = True
wb.Navigate("D:\index.htm"
, o, o, o, o)
'# Get an mshtml object
Dim HTMLDoc As mshtml.HTMLDocument= wb.Document
'# Get an IHTMLWindow2 from the frame sets
Dim f1 As mshtml.IHTMLWindow2 = CType(HTMLDoc.frames.item(
2), mshtml.IHTMLWindow2)
'# HERE IS WHERE I NEED HELP
dim oObj =f1.execScript("function myFunc() { var a = document.getElementById('D
YN');retur
n a.innerHTML; };", "JScript")
What I need to do is have the value of a.innerHTML returned to the oOBJ and eventually into a string, I know that exeScript doesnt return a value, but this article here, someone has done so using a language I dont understand. Help please!
http://forums.microsoft.com/msdn/ShowPost.aspx?PostID=3631410&SiteID=1
msgbox f1.document.documentElemen