Getting Information From the Browser...

  • Thread starter Thread starter Kris Rockwell
  • Start date Start date
K

Kris Rockwell

Hello,

I have been searching for a few items with little success. I am hoping
somebody here can answer my questions...

1. Is it possible to get the title (<title> </title>) of a web page through
the axwebbrowser control? Essentially I would like my application to grab
the title and save it as a variable.

2. This may not be the correct group for this, but I amgoing to give it a
shot...Using a Web Form I have placed a button component on a page
(<asp:button>). I would like to use the button to direct the user to a new
page. Is it possible to control the actions of this button with Javascript
and, if not, can I do so using the CodeBehind? What methods/properties would
I access?

Any help with this would be greatly appreciated.

Regards,
Kris
 
Hi Kris,

Have a look for mshtml. It is in the normal Net reference box. If you are
familiar with javascript it should be very familiar to you because it uses
the Document Object Model just as javascript.

Do not set a import but reference direct to it because it has so many
interfaces that your IDE slows down to nothing if you set an import.

Try and when you do not succeed using it, message back because I do not have
the code I use direct as sample but spread over a lot of different classes.


I hope this helps,

Cor
 
Back
Top