How can I log to javascript console ID when I click on an object in UE4 html5 application?

I’m working on a project that requires an event to happen on the web browser from an action taken in side that application. Basically, when I click on the countertop object, the web browser will show me related products.

I’m kind of new to js and c++ and this is a project for my work that I have to do. Any help would be great!