blob: 01f095e9fbdb0dd94056629c67400e2d74838cdb [file] [log] [blame]
<html>
<body id="inParent">
<script>
function receiveMessage(event) {
window.domAutomationController.send(event.data);
}
function sendMessage(msg) {
document.getElementById("iframe").contentWindow.postMessage(msg,"*");
}
function create_iframe(src) {
var ifrm = document.createElement("IFRAME");
ifrm.setAttribute("id", "iframe");
ifrm.setAttribute("name", "iframe");
ifrm.setAttribute("src", src);
document.body.appendChild(ifrm);
}
window.addEventListener("message", receiveMessage, false);
</script>
</body>
</html>