Page 1 of 1

How to get clicked element?

PostPosted: Mon Oct 26, 2020 5:40 pm
by JosephQ
I'm switching from using IE ActiveX to CEF to house a 3rd-party website. It has Submit and Cancel buttons that when clicked, the form should close automatically. I can catch Submit because it navigates to a different URL, but Cancel just switches the text displayed on the page (no navigation happens). I use AddressChanged for handling Submit in my WinForm, but I can't find a suitable event to use for the Cancel button.

Re: How to get clicked element?

PostPosted: Mon Oct 26, 2020 6:42 pm
by magreenblatt
You can use the JS onClick event to navigate. Or you can use JS bindings as described at https://bitbucket.org/chromiumembedded/ ... t-bindings