blob: 854cd1c0d353bb483a398eaf4087e9c68bbb9b03 [file] [log] [blame]
<html><head><title>iframe test</title></head>
<script type="text/javascript">
function createStruct(wnd,viewer,popup){
iframe=wnd.document.createElement('iframe');
viewer.appendChild(iframe);
iframe.contentWindow.document.write('<SCRIPT src=\"iframe_in_empty_frame.js\"></SCR'+'IPT>');
}
wndname = "_blank";
wnd = window.open("", wndname, 'width=780,height=572,scrollbars=no,resizeable=no,statusbar=no,status=no,left = '+((screen.width / 2) - 780 / 2)+', var top = '+((screen.height / 2) - 572 / 2)+'');
if(wnd) {
wnd.document.open();
wnd.document.write('<html><body onload="finished();"><script>function finished() {if (window.opener) {window.opener.createStruct(this,document.getElementById("viewer"),true);}}</scr'+'ipt><div id="viewer"></div></body></html>');
wnd.document.close();
}
</script>
</html>