<div id=div style="display:none">Page 1</div>
<script>
window.onload = function() {
opener.postMessage("loaded", "*");
}
</script>