summaryrefslogtreecommitdiffstats
path: root/dom/messagechannel/tests/iframe_messageChannel_chrome.html
blob: 5fcd43a34cc00648a97b8fbcfcebb484113925c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
<!DOCTYPE HTML>
<html>
<body>
  <script type="application/javascript">

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