gecko-dev/dom/base/test/iframe_messageChannel_chrome.html

12 lines
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>