by Yariv Sarafraz (2 Submissions)
Category: Internet/HTML
Compatability: Visual Basic 5.0
Difficulty: Beginner
Date Added: Wed 3rd February 2021
Rating: (4 Votes)
Extremely simple! It extracts HTML code from any given site. Great for newbies. ONLY ONE LINE OF CODE!
.
This code will allow you to extract HTML code from any
given website. I know it’s not that exciting, but it comes in handy when you
wanna get passed those ‘no right-click’ scripts.
You only need MSInet.ocx (Microsoft Internet Transfer
Control), a command button, and two textboxes.
Name the first textbox ‘txthtml’ and name the second
‘txturl’. Make the command button’s caption ‘Get HTML’.
Enter this code into the command button …
txthtml.Text = Inet1.OpenURL(txturl.Text)
-- It doesn’t get
any simpler than that.