window.createPopup()、iframe问题
createPopup中可以使用iframe吗?
我在createPopup中放了一个iframe,iframe是可以显示但是iframe所链接的页面不能显示,请问该怎么来用?
以下是我的代码,请帮忙看看,谢谢
var oPopup = window.createPopup();
function ButtonClick(node)
{
oPopup.document.body.innerHTML = "";
var oPopBody = oPopup.document.body;
var left=event.clientX;
var top=event.clientY;
oPopup.show(left ,top, 300, 200, document.body);
oPopup.document.open;
oPopup.document.write("<body leftmargin=0 topmargin=0 scroll=no style='border : 0 px;'");
oPopup.document.write("<div id='div1'><div style='width:100%;background:#B0D7FE;height:18px;color:#107CA0;cursor: move;' align='right'>");
oPopup.document.write("<<a style='cursor:pointer' onclick=parent.popt=setTimeout('parent.oPopup.hide()',10);>×</a></div>");
oPopup.document.write("<iframe id='ifDisplay' src='/Default3.aspx' style='width:100%; height:170px;border-style:dashed;color:Black;border-width: 1px,1px,1px,1px;'></iframe>");
oPopup.document.write("</div></body>")
}