-
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.
-
Text1.Text = Web1.Document.body.innerhtml
:)
-
thanks a lot.
where did you find this information?
-
some dude gave that week ago here :)
-
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.
-
Also how do you get the LOAD TIME it took for the page to load, and if it loaded at all or was down?
-
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.