-
To retrieve the content of a webbrowser :
a = WebBrowser1.Document.documentElement.innerHTML
How do retrieve all the contents of a web page which has frames within the webbrowser object? (all the web pages, especially when the frame uses javasript)
Thanks.
-
Try this.
Code:
Private Sub WebBrowser1_DocumentComplete(ByVal pDisp As Object, URL As Variant)
If pDisp is WebBrowser1.Object Then
a = WebBrowser1.Document.documentElement.innerHTML
End If
End Sub
That should take care of your Frames Problem.
All the best.
-
Re: Try this.
Quote:
Originally posted by OneSource
Code:
Private Sub WebBrowser1_DocumentComplete(ByVal pDisp As Object, URL As Variant)
If pDisp is WebBrowser1.Object Then
a = WebBrowser1.Document.documentElement.innerHTML
End If
End Sub
That should take care of your Frames Problem.
All the best.
I've tried this but it will only retrieve the master page, what I want to get is the other pages as well.
For example a web page contains 3 frames, then maybe I'll need 3 string variables to hold the content of each of the 3 web page or maybe I can concatenate all three into one string variable.
Do you know how to do this?
Thanks.
-
URL please.
Hi d4vid,
I'm pretty sure that it's possible to do what you want to do. It will be easier to help you if you can give the URL that you're trying to access. Otherwise, you can search MSDN for the Webbrowser Control.
All the best.