You can use the Navigate2 Method to Open a Copy of the Source Code in Notepad..
------------------Code:WebBrowser1.Navigate2 "view-source:" & WebBrowser1.LocationURL
Aaron Young
Analyst Programmer
[email protected]
[email protected]
Printable View
You can use the Navigate2 Method to Open a Copy of the Source Code in Notepad..
------------------Code:WebBrowser1.Navigate2 "view-source:" & WebBrowser1.LocationURL
Aaron Young
Analyst Programmer
[email protected]
[email protected]
Aaron, thanks for your reply! That's exactly what I needed, a way to get to the source code.
But I have one more question, "HOW DID YOU KNOW!" I've been trying to figure this out for days, searching on the Web and going through MSDN's help. I didn't see the code that you provided anywhere. Please, let me know the "source" of your "code!"
Thanks,
Chris
view-source: is a Protocol like Http: and MailTo:, which just opens the URL in the Default HTML Editor, for most people Notepad.
Checkout MSDN Online
------------------
Aaron Young
Analyst Programmer
[email protected]
[email protected]
In conjunction with the Web Browser Control, can this method be used to access the source code of a URL? I know that it can be used to print a web page, but I need to get to the HTML document.
Any suggestions or references to additional information would be appreciated.
Thanks.
Chris
[This message has been edited by ChrisJackson (edited 11-30-1999).]