VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



how to capture the html source of any website very easy....

by king (24 Submissions)
Category: Internet/HTML
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Thu 13th May 2004
Date Added: Mon 8th February 2021
Rating: (1 Votes)

how to capture the html source of any website very easy....

API Declarations


you need a textbox
or list box

Rate how to capture the html source of any website very easy....




the code is
text1.text = yourformname.yourwebbrowsername.document.documentElement.innerHTML
thats it.........

if you dont have a webbrowser define in your form and you just want to download the html source 

then follow this code
declare
you go to refrences and use html object library and internet controls and declare the following code

Dim ie As New SHDocVw.InternetExplorer
 on form_load
set ie = new SHDocVw.InternetExplorer

now on the navigate button write the following code
ie.navigate text1.text (text1 is the name of the textbox in which you write the address of the website you want to extract html source from)
list1.add ie.document.documentElement.InnerHTML

thats it..... easy right

If you still want to ask me any question you are freely to ask me on [email protected]

Download this snippet    Add to My Saved Code

how to capture the html source of any website very easy.... Comments

No comments have been posted about how to capture the html source of any website very easy..... Why not be the first to post a comment about how to capture the html source of any website very easy.....

Post your comment

Subject:
Message:
0/1000 characters