Click or drag to resize

IJsDialogsPromptHandler Property

Gets or sets a handler that is used when JavaScript dialog prompting the user to input some text should be displayed.

Namespace:  DotNetBrowser.Browser.Dialogs
Assembly:  DotNetBrowser (in DotNetBrowser.dll) Version: 2.16.1
Syntax
C#
IHandler<PromptParameters, PromptResponse> PromptHandler { get; set; }

Property Value

Type: IHandlerPromptParameters, PromptResponse
Exceptions
ExceptionCondition
ObjectDisposedExceptionThe IBrowser has already been disposed.
ConnectionClosedExceptionThe connection to the Chromium engine is closed.
Remarks

The passed PromptParameters object contains the text of the prompt message and the default response text. You can use this information to display standard modal dialog to obtain a prompt response from user. Please note that it is not necessary to display a dialog in this callback.

Use the SubmitText(String) method to close the dialog and pass the text value passed as a parameter to the engine.

Use the Cancel method to cancel the dialog.

If the callback throws an exception, the Cancel method will be used.

See Also