New browser as child window of existing one?
-
Hello, I want to create a new browser as a child window of existing one? Can i do that? Any ideas?? I am using IWebBrowser2 interface. But it opens my page into default browser. regards, Mahesh
Since you are using the Internet Explorer browser control, you can insert an IFRAME HTML tag set into your existing web browser control and have the iframe navigate to the page you want. use innerHTML method and then call execScript with code to have the IFRAME navigate elsewhere. It's one way. -Erik Thompson
-
Since you are using the Internet Explorer browser control, you can insert an IFRAME HTML tag set into your existing web browser control and have the iframe navigate to the page you want. use innerHTML method and then call execScript with code to have the IFRAME navigate elsewhere. It's one way. -Erik Thompson
-
Dear Mahesh, There are events that the WebBrowser control emits, which you can handle by implementing the DWebBrowserEvents2 dispatch interface in your program (or something, I forget :) ). The event OnBeforeNavigate or OnBeforeNavigate2 (I forget again :) ) are called or fired after the Navigate() method is called but before navigation begins. It is passed parameters like the URL, do we want to cancel, so forth. What I would do is to put new child-window-creation code in there, and pass the URL to the new window, which itself could contain a WebBrowser control. Cheers, Brian Hart :)