<script> function start(){ document.body.appendChild(window.top.div); } </script> <body onload="start()">