Skip to content

JavaScript Confirm Box #29

Answered by amaitland
Mephisto090 asked this question in Q&A
Discussion options

You must be logged in to vote

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 of JsDialogHandler to Browser.JsDialogHandler

browser.JsDialogHandler = new CustomJsDialogHandler();

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by amaitland
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants