<html> | |
<head> | |
<script> | |
function loaded() | |
{ | |
document.getElementsByTagName('h4')[0].innerHTML = document.domain; | |
if (top.opener) | |
top.opener.postMessage("iframe-with-inner-frame-on-foreign-domain-LOADED", "*"); | |
} | |
</script> | |
</head> | |
<body onload="loaded();"> | |
<h4>DOMAIN</h4> | |
<iframe name="targetFrame" src="http://localhost:8000/security/resources/cross-frame-iframe.html"></iframe> | |
</body> | |
</html> |