How to exchange messages from HTML page to unreal element and vice-versa?

Best regards, Jorge Costa