Microsoft SDK for Java

NewWindow

This method of the DWebBrowserEvents 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).

Syntax

public void NewWindow(java.lang.String URL, int Flags,
java.lang.String TargetFrameName,
com.ms.com.Variant PostData, java.lang.String Headers,
boolean[] Processed);

Parameters

URL [in] The URL to be navigated to.
Flags [in] Reserved for future use.
TargetFrameName [in] The string that contains the name of the frame in which to display the resource, or NULL if no named frame is targeted for the resource.
PostData [in] The address of data to send to the server if the HTTP POST transaction is being used.
Headers [in] Additional HTTP headers to send to the server (HTTP URLs only). The headers can specify things such as the action required of the server, the type of data being passed to the server, or a status code.
Processed [out] The address of a cancel flag. An application can set this parameter to TRUE to cancel the navigation operation, or to FALSE to allow it to proceed.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.