gecko-dev/dom/messagechannel/tests/iframe_messageChannel_chrom...

12 строки
216 B
HTML

<!DOCTYPE HTML>
<html>
<body>
<script type="application/javascript">
window.addEventListener('message', receiveMessage);
function receiveMessage(evt) {
evt.data.postMessage("Hello world");
}
</script>
</body>