This method of the DWebBrowserEvents2 interface occurs when a new window is to be created for displaying a resource. This event precedes the creation of a new window from within the WebBrowser (for example, in response to a navigation targeted to a new window, or to a scripted window.open method).
public void NewWindow2(java.lang.Object[] ppDisp, boolean[] Cancel);
ppDisp | [out] The address of an interface pointer that, optionally, receives the IDispatch interface pointer of a new WebBrowser or InternetExplorer object. |
Cancel | [out] The address of a cancel flag. An application can set this parameter to TRUE to cancel the navigation operation, or FALSE to allow it to proceed. |