How to catch js button onclick event by CefShap on WinForms?
问题 How can I intercept a js onClick on a button in an Html document that is running under WinForms with CefSharp browser controller so that C# code can intercept this event and do some actions already in .NET environment? 回答1: For basic communication you can use CefSharp.PostMessage(message); in Javascript to send a message to .Net which triggers the browser.JavascriptMessageReceived event. // After your ChromiumWebBrowser instance has been instantiated (for WPF directly after