JavaScript Confirm Box #29
-
Hello, how can I react to a For IE there was a class on the internet that could do that. (See source code below)
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You can create a class that inherits from JsDialogHandler to implement custom behaviour. Override https://cefsharp.github.io/api/100.0.x/html/M_CefSharp_Handler_JsDialogHandler_OnJSDialog.htm and provide a custom behaviour that suites your needs. Making sure to assign a new instance of your browser.JsDialogHandler = new CustomJsDialogHandler(); |
Beta Was this translation helpful? Give feedback.
You can create a class that inherits from JsDialogHandler to implement custom behaviour.
Override https://cefsharp.github.io/api/100.0.x/html/M_CefSharp_Handler_JsDialogHandler_OnJSDialog.htm and provide a custom behaviour that suites your needs.
Making sure to assign a new instance of your
Custom
implementation ofJsDialogHandler
to Browser.JsDialogHandler