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

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