how to grab a handle to existing IE document?

M

Michael Bray

I have an application in which I want to call a javascript function inside
a microsoft IE window. I know how to do this using an embedded browser as
well as a full browser that I spawn. In both cases, it is easy to get the
handle to the IHTMLDocument object. However, it appears that the web
application is starting up a new window, and I don't have the handle to
that IHTMLdocument, so my calls to the javascript function is failing.

Does anyone have any pointers about how we can grab the handle to the new
browser, assuming that we know some kind of information (the browser title,
etc...) I was thinking maybe we could parse the Window tree or something,
looking for a particular object class... I'm not really sure.

any help is much appreciated!

TIA

-mdb
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top