var oPopup=window.createPopup();
oPopup.document.write("parent.open('http://csdn.net/')");
oPopup.show(20, 10, 400, 500);
你那样做总感觉有些复杂..
oPopup.document.write("parent.open('http://csdn.net/')");
oPopup.show(20, 10, 400, 500);
你那样做总感觉有些复杂..
这样子在我执行起来好像没有效果,仅仅打印了parent.open('http://csdn.net/'),谢谢
---------------
绝对支持的.
{
var div1=document.createElement('div');
div1.style.zIndex=1;
div1.style.position='absolute';
div1.style.width='400px';
div1.style.height='500px';
div1.style.left='20px';
div1.style.top='10px'; var ifr=document.createElement('iframe');
ifr.src="http://csdn.net/";
ifr.setAttribute('width','400px');
ifr.setAttribute('height','500px'); div1.appendChild(ifr);
document.body.appendChild(div1);
}
var oPopup=window.createPopup();
oPopup.document.write("<input type=button value=link onclick=\"javascript:parent.open('xx.html');\"><input type=button value=test onclick='alert(parent.location);'>");
oPopup.show(100,100,100,100);
</script>