<!DOCTYPE html>
<html>
<head>
  <script>
    window.onmessage = event => {
      document.body.textContent = `${event.origin}|${event.data}`;
    };
  </script>
</head>

<body></body>
</html>