Couldn't you just use an iframe? Something like:
Code:
<script type="text/javascript">
function iframe_popup(){
var iframe_pop=document.createElement('iframe');
iframe_pop.setAttribute("scrolling", "no");
iframe_pop.setAttribute("frameBorder", "no");
iframe_pop.setAttribute("width", 610);
iframe_pop.setAttribute("height", 370);
iframe_pop.style.border="1px solid black";
iframe_pop.style.position="absolute";
iframe_pop.style.left="50%";
iframe_pop.style.top="50%";
iframe_pop.style.marginLeft="-305px";
iframe_pop.style.marginTop="-185px";
iframe_pop.setAttribute("src", "http://www.google.com");
document.body.appendChild(iframe_pop);
}
window.onload=iframe_popup;
</script>
But I don't know if that's what you want.
Note: the part in red is needed if you want to center the iframe.
===
Arie Molendijk.
Bookmarks