var oPopup=window.createPopup();
oPopup.document.write("parent.open('http://csdn.net/')");
oPopup.show(20, 10, 400, 500);
你那样做总感觉有些复杂..

解决方案 »

  1.   

    楼上的,oPopup.document.write("parent.open('http://csdn.net/')"); 
    这样子在我执行起来好像没有效果,仅仅打印了parent.open('http://csdn.net/'),谢谢
      

  2.   

    window.createPopup是否支持iframe链接页面?欢迎讨论 
    ---------------
    绝对支持的.
      

  3.   

    还不如自己创建div完成,还支持FF呢function createPopup()
    {
        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);
    }
      

  4.   

    谢谢各位的讨论,目前结论是createPopup不支持iframe
      

  5.   

    楼上的rjzou2006说绝对支持,麻烦给个简单实例说明一下,谢谢
      

  6.   

    <script   language="javascript">   
      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>