код такой:
<script>
second=window.createPopup();
second.document.body.innerHTML="<body><div style='background:#cc00cc;' width=500 id=divv name=divv></div></body>";
var script=document.createElement("iframe");
script.setAttribute("src","http://google.ru");
var plus = second.document.getElementById('divv');
plus.appendChild(script);