How to communicate with the browser and UE4 for HTML5?

I’m thinking of making a program that outputs information about a box to a web browser when it interacts with Unreal Engine 4.

How to notify the browser to UE4 interactions (e.g. clicking on a box)?
(e.g. when enter text into a browser form, the text will be rendered on the UE4 side, etc.)

It would be helpful to have the following sample to write the data input and output to and from UE4 in console.log.

const ue4Engine = document.getElementById('canvas');

ue4Engine.addEventListener('interact', (blueprint) => console.log(blueprint.event));

Also, I would like to know how to receive and process the data generated by the web browser on the UE4 side.

  .then(response => response.text)
  .then(data =>;

[question] Communicate from ingame to browser · Issue #42 · UnrealEngineHTML5/Documentation · GitHub and [question] WebGL browser scripting · Issue #6 · UnrealEngineHTML5/Documentation · GitHub touch these topics, you can find your answers there, I can’t help too much on my own.