summaryrefslogtreecommitdiffstats
path: root/dom/messagechannel/tests/iframe_messageChannel_sharedWorker2.html
blob: a693cba22c2e6e8449c6cdff7308f39f8cfc71cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<!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>