PDA

Click to See Complete Forum and Search --> : How do I see the source once a webbrowser has loaded a page?


Aug 29th, 2000, 02:15 PM
Text1.text = Webbrowser1.Document.documentElement.innerHTML

Unfortunately, it doesn't put the <html></html> tags in, but you can do it yourself.

Text1.text = "<HTML>" & Chr$(13) & Chr$(10) & Webbrowser1.Document.documentElement.innerHTML & Chr$(13) & Chr$(10) & "</HTML>"

vbDan
Aug 29th, 2000, 02:33 PM
Thanks a lot! It works great.

By the way: it seems that using:

Text1.Text = WebBrowser1.Document.documentElement.outerHTML

also gives you the <HTML> & </HTML> tags

[Edited by vbDan on 08-29-2000 at 03:39 PM]