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

  var a = new SharedWorker('sharedWorker2_messageChannel.js');
  a.port.onmessage = function(evt) {
    evt.ports[0].postMessage("Hello from the iframe!");
  }

  </script>
</body>
</html>