webbrowser

I was wondering if there was some way to view the sorce of a html page in a textbox from the webbrowser control in VB 6.

Thanks.

Chris
chrisyroidAsked:
Who is Participating?
 
BrianGEFF719Connect With a Mentor Commented:
text1.text = webbrowser1.document.body.innerhtml
0
 
AzraSoundConnect With a Mentor Commented:
Actually, that will return all the html between the <body /> tags.  For the full source, use:

Text1.Text = WebBrowser1.Document.documentElement.outerHTML
0
 
BrianGEFF719Commented:
Learn something new every day :)

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.