Get Html tag on which I make Click

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

Get Html tag on which I make Click

Postby antondnp » Thu Jul 27, 2017 4:19 am

Good Day!

I am using Chromium WebBrowser in WinForms application c#.
On the Form i have two controls - TextBox and Chromium WebBrowser.

The browser works great, but I need to do such thing - when I click аnywhere in the browser I need to get tag on which i click and it's id or class.
For example there is on the site which is load into Chromium WebBrowser tag <div id='a'>... </div>.

When I CLick on tag <div id='a'>... </div> I need tag name and tag id to be shown in TextBox. For this exmple it must be div and a.

How Can i do it?
antondnp
Newbie
 
Posts: 1
Joined: Wed Jul 26, 2017 1:25 am

Return to Support Forum

Who is online

Users browsing this forum: Google [Bot] and 42 guests