How do I set or update WebBrowser document.

  • Thread starter Thread starter Charles Law
  • Start date Start date
C

Charles Law

Hi Porter

You will see several ways of doing this suggested: the way you state, using
innerHtml, and also using the write() method.

The intended way is to load the document from a stream using the Load()
method of the IPersistStreamInit interface. You can get this interface by
QI-ing the document. Bear in mind that the document loads asynchronously, so
you have to wait for it to finish before you can access the DOM.

HTH

Charles
 
I am trying to devolop a deskbar that act likethe netscape navigator tab. I
understand how to do all of the Band Objects but am having dificulty
altering the WebBrowser.Document. I have seen where some people have used
the Document.body.innerhtml but this isn't really a solution it is more of a
work around. Can I have several IHTMLDocuments and set the
WebBrowser.Document to one of these objects?
 
Back
Top