How to get clicked element?

Discussion of current events and participation in intelligent conversation with other CEF users.

How to get clicked element?

Postby JosephQ » Mon Oct 26, 2020 5:40 pm

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.
Posts: 1
Joined: Mon Oct 26, 2020 5:34 pm

Re: How to get clicked element?

Postby magreenblatt » Mon Oct 26, 2020 6:42 pm

You can use the JS onClick event to navigate. Or you can use JS bindings as described at ... t-bindings
Site Admin
Posts: 11093
Joined: Fri May 29, 2009 6:57 pm

Return to General Discussion

Who is online

Users browsing this forum: No registered users and 1 guest