<!DOCTYPE html> | |
<html> | |
<body> | |
<div>window.location.href = <script>document.write(window.location.href);</script></div> | |
<script> | |
function recv(e) { | |
var msg = 'Received message: data="' + e.data + '" origin="' + e.origin + '"'; | |
top.postMessage(msg, '*'); | |
} | |
addEventListener("message", recv, false); | |
</script> | |
</body> | |
</html> |