summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/webmessaging/message-channels/004-2.html
blob: 1b8ef0a7a0f020f402f081d05588d5b5751191b6 (plain)
1
2
3
4
5
6
7
8
9
10
<!doctype html>
<title>004-2</title>
<script>
onmessage = function(e) {
  var port = e.ports[0];
  port.onmessage = function(e) { // implied start()
    parent.postMessage(e.data, '*');
  }
}
</script>