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

12 строки
223 B
HTML

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