ie7中window.open无法调节子窗口大小

ie7中window.open好像无法调节子窗口大小,用showModalDialog吧。

opener与parent的区别 showModalDialog取得父窗口的方法

window.open('xxx.htm',//要弹出的窗口名称  
                          '新的窗口',//窗口标题  
                          'height=100,width=100//高度,宽度  
                          ,top=0,left=0//离左上方的位置  
                          ,toolbar=no//是否显示工具栏  
                          ,menubar=no//是否显示菜单栏  
                          ,scroolbars=no//是否显示动条  
                          ,resizable=no//是否可以拉伸  
                          ,location=no//是否显示地址栏  
                          ,status=no'//是否显示状态栏  
                          )

window.opener.document.getElementById("name").value = "输入的数据"; 

showModalDialog:

a.htm  
  <form   name="form1"     method="POST">  
  <input   name="text1"   value="000">  
  </form>  
   
  showModalDialog('b.htm',window,'dialogWidth:   800px;   dialogHeight:   465px;   status:   no;   help:   no;');  
  ---------------------------------------------------  
  b.htm  
  <form   name="form2"     method="POST">  
  <input   name="text2"   value="aaaaaaaaa">  
  <input   name="bt"   type="button"   οnclick="aaa()">  
  </form>  
  <script>  
  function   aaa()  
  {  
  dialogArguments.document.form1.text1.value=document.form2.text2.value;  
  }  
  </script>

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值