Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Web browser control

Status
Not open for further replies.

barryna

Programmer
Feb 15, 2002
111
US
How do I grab the source code of a particular web page I am on in VB 6.0 (i.e. much like view->source in IE, but need to do it in my own vb web browser). I am using webbrowser1 as my control to get onto the web.
 

Searching this site returned a couple of hits

thread222-391800
thread222-260726
thread796-447823

put together

&quot;<html>&quot; & vbNewLine & W.Document.All.Item(1).outerhtml & vbNewLine & W.Document.body.outerhtml & vbNewLine & &quot;</html>&quot;

Good Luck

 

Found better one
[tt]
Variable = W.Document.All(0).outerhtml
[/tt]

Good Luck

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top