Results 1 to 7 of 7

Thread: webbrowser - view source

  1. #1

    Thread Starter
    Addicted Member c@lle's Avatar
    Join Date
    Oct 1999
    Location
    Belgium
    Posts
    179

    webbrowser - view source

    i'm using the 'webbrowser' control in my application.

    i use 'wb.navigate ("www.website.com")' which correctly opens the wanted website.

    now i want to display the 'html-source' of this webpage (normally in your browser you can rightclick and select 'view source'). this opens a notepad with plain 'html-text'. how can i retrieve this text?????

    thanks for any help.

  2. #2
    yay gay PT Exorcist's Avatar
    Join Date
    Apr 2002
    Location
    . . . my reason of shame
    Posts
    2,729
    Text1.Text = Web1.Document.body.innerhtml

  3. #3

    Thread Starter
    Addicted Member c@lle's Avatar
    Join Date
    Oct 1999
    Location
    Belgium
    Posts
    179
    thanks a lot.

    where did you find this information?

  4. #4
    yay gay PT Exorcist's Avatar
    Join Date
    Apr 2002
    Location
    . . . my reason of shame
    Posts
    2,729
    some dude gave that week ago here

  5. #5

    Thread Starter
    Addicted Member c@lle's Avatar
    Join Date
    Oct 1999
    Location
    Belgium
    Posts
    179
    how do i find out what url is clicked?

    so how can i intercept and do something with this url (thus not using the browser to display the url). i want to cancel the click!

    thanks.

  6. #6
    New Member
    Join Date
    May 2002
    Posts
    14
    Also how do you get the LOAD TIME it took for the page to load, and if it loaded at all or was down?

  7. #7
    WALDO
    Guest

    c@lle,

    use the Navigate2 method and the BeforeNavigate2() event and you'll be able to see where someone's going and potentially stop them.

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