Red Box or highlight and element visually

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.

Red Box or highlight and element visually

Postby ThinkingMan » Wed Aug 05, 2020 3:05 am

What would be the functions to use in CEF to highlight or get information about an HTML node?

Say for example you had a DIV box with an ID or a Name and you wanted to visually show which item in the browser that is, with a red box around it..

Something like the Firefox debugging tools where you can inspect elements too.

I think javascript might be used to put a red box around an item, but I am not sure how you would go about the rest. If you know the "name" or "id" of an item you should be able to flash a red box three times to show it visually on the screen where it is, or select it by Mouse and put a red box around it... is what I am looking for.
ThinkingMan
Techie
 
Posts: 10
Joined: Wed Mar 01, 2017 11:52 am

Re: Red Box or highlight and element visually

Postby magreenblatt » Wed Aug 05, 2020 9:20 am

If you’re trying to debug something you can use DevTools to inspect elements interactively. Otherwise, use JavaScript to add a CSS class or animation on mouse event.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm


Return to Support Forum

Who is online

Users browsing this forum: Google [Bot], Majestic-12 [Bot] and 87 guests

cron