Sign in
cobalt
/
cobalt
/
07081467c3d00b04a6a1162e0566a5a8b9cfe2d5
/
.
/
third_party
/
web_platform_tests
/
webmessaging
/
message-channels
/
004-2.html
blob: 1b8ef0a7a0f020f402f081d05588d5b5751191b6 [
file
] [
log
] [
blame
]
<!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>