servo/tests/wpt/web-platform-tests/webmessaging/message-channels/004-2.html

10 lines
No EOL
201 B
HTML

<!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>