0

I have a Webbrowser implemented into my application, is there any way to find the title of the currently loaded document in the Webbrowser ?

What I am trying to achieve is that the browser reloads the website until the document reaches a specific title.

Marius Prollak
  • 368
  • 1
  • 7
  • 22

1 Answers1

0

You implemented the IE browser com object in your application ? If so, you can get the "IHTMLDocument2" interface pointer and call the "get_title" to obtain the title string. Alternatively you can also get the html source from the "IHTMLDocument3" interface and parse it youself.

refer: Retrieve HTML source from CHtmlView (visual studio 6)

Community
  • 1
  • 1
mfc
  • 565
  • 2
  • 6