Click or drag to resize

IBrowserCreatePopupHandler Property

Gets or sets a handler that is used when the browser decides whether a new popup instance can be created or not.

Namespace:  DotNetBrowser.Browser
Assembly:  DotNetBrowser (in DotNetBrowser.dll) Version: 2.13.0
Syntax
C#
IHandler<CreatePopupParameters, CreatePopupResponse> CreatePopupHandler { get; set; }

Property Value

Type: IHandlerCreatePopupParameters, CreatePopupResponse
Exceptions
ExceptionCondition
ObjectDisposedExceptionThe IBrowser has already been disposed.
Remarks

Use the Create method to let the browser to create a new popup.

Use the Suppress method to suppress popup.

If an exception occurs inside the handler implementation, the default behavior will be applied - the method Suppress will be used.

Important: the engine will be blocked until you return control from the callback.

See Also