Click or drag to resize
IJsDialogHandler Interface
Version 51.0.0
Implement this interface to handle events related to JavaScript dialogs. The methods of this class will be called on the CEF UI thread.

Namespace: CefSharp
Assembly: CefSharp (in CefSharp.dll) Version: 51.0.0.0 (51.0.0.0)
Syntax
public interface IJsDialogHandler

The IJsDialogHandler type exposes the following members.

Methods
  NameDescription
Public methodOnDialogClosed
Called when the default implementation dialog is closed.
Public methodOnJSBeforeUnload
When leaving the page a Javascript dialog is displayed asking for user confirmation. Returning True allows you to implement a custom dialog or programatically handle. To cancel the unload return True and set allowUnload to False.
Public methodOnJSDialog
Called to run a JavaScript dialog.
Public methodOnResetDialogState
Called to cancel any pending dialogs and reset any saved dialog state. Will be called due to events like page navigation irregardless of whether any dialogs are currently pending.
Top
See Also