Quote:
Private Sub LoadMainPage()
Dim ResultLoad As String
Dim MyIe As New SHDocVw.InternetExplorer
Dim wbrElm As MSHTML.IHTMLElement
Dim HTMdoc As IHTMLDocument2
Dim myFrame2 As IHTMLDocument2
Dim totalFrame As Integer
MyIe.navigate "TEST.HTML"
MyIe.Visible = True
Set HTMdoc = MyIe.document
Set myFrame2 = HTMdoc
'this shows the Main (parent Page HTML Code)
MsgBox (myFrame2.body.innerHTML)
End sub
Same like that if TEST.HTML opens other Child page as popup(TEST2.HTML) and i need to get the HTML code of that "TEST2.HTML"