<!DOCTYPE HTML>
<html>
<body>
  <script type="application/javascript">

window.addEventListener('message', receiveMessage);
function receiveMessage(evt) {
  evt.data.postMessage("Hello world");
}
  </script>
</body>
