Sign in
chromium
/
chromium
/
src
/
refs/tags/83.0.4103.38
/
.
/
android_webview
/
test
/
data
/
post_message_with_ports.html
blob: e94152809d4dabc984a7241a8282a60e76819924 [
file
] [
log
] [
blame
]
<html>
<head>
<script>
let channel
=
new
MessageChannel
();
myObject
.
postMessage
(
"Hello"
,
[
channel
.
port1
]);
channel
.
port2
.
onmessage
=
function
(
e
)
{
document
.
title
=
e
.
data
;
}
</script>
</head>
<body>
<div>
post message with ports
</div>
</body>
</html>