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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HTML Source code 1

Status
Not open for further replies.

Orrill

Programmer
Nov 9, 2003
2
GB
How do I go about viewing the source code from a URL?

Thanks in advance.
 
right click, view source?

======================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
 
no i'll explain more...I would like to take the source code and put it into a text file when i press a cmd button. I think it has something to do with the winsock control.
 
Try the Internet control - details in VBHelp

________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first

'People who live in windowed environments shouldn't cast pointers.'
 
Here is another way if you are using the webbrowser control (a bit of a hack).

Dim mObj As Object
Set mObj = WebBrowser1.Document.getElementsByTagName("HTML")
MsgBox &quot;<HTML>&quot; & mObj(0).innerHTML & &quot;</HTML>&quot; 'will not return the tags themselves (HTML) but the nested markup for itself.



 
Use the Inet control

txtSource.Text = Inet1.OpenURL(&quot;YourUrlpath&quot;)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top