Results 1 to 2 of 2

Thread: How do I see the source once a webbrowser has loaded a page?

  1. #1
    Guest
    Code:
    Text1.text = Webbrowser1.Document.documentElement.innerHTML
    Unfortunately, it doesn't put the <html></html> tags in, but you can do it yourself.

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

  2. #2
    Member
    Join Date
    Jun 2000
    Posts
    34

    Smile

    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]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width