如何在新开的窗口控制母窗口的表单提交? window.opener.document.forms[0].submit(); 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <a href="javascript:window.opener.document.all.form1.submit()">aaa</a>上面的代码我测试过没问题的. 你open是用模式窗口吗?如果是用如下代码:打开窗口时,把window作为参数showModalDialog("aa.htm",window)调用时:var mm = window.dialogArguments;mm.document.formName.submit(); window.opener.parent.document.formName.submit();formName应该为<form id=formName name=formName ... window.opener.document.formname.submit();formname的名称应该于你父窗口的名称相一致!!! 非常感谢大家的帮助!我用了window.opener.alert(window.opener.document.all.filterForm.pageto.value);测试母窗口会正常的弹出说明窗口,其中filterForm是母窗口的表单名字,pageto是一个text文本控件。opener.window.location.reload();也正常刷新。而一旦改用window.opener.document.all.filterForm.submit();IE就报错,不支持此方法。我又在母窗口用了document.filterForm.submit();会正常提交;不知道是不是新开的窗口不能控制母窗口的提交动作。 可以,应该这样写。 opener.window.document.all.filterForm.submit(); 我试了好几次opener.window和window.opener效果是一样的我最早就是使用opener.window.document.all.filterForm.submit();结果IE脚本调试报错,说不支持此方法。javascript真的不容易调试。 是吗?你一开始好象是用的opener.window.document.formName.submit();少了一个all是不行的。opener.window.document.all.filterForm.submit();我在ie5下调试是正确的:) 的确浏览器不支持子窗口对父窗口的submit方法。不过我已经通过触发父窗口表单的提交按钮来实现了。opener.window.document.all.filterForm.submit.click();其中submit为提交按钮的name jQuery的翻页插件 各位前辈 帮帮我 js获取地域跳转问题 toJSONString的问题 jscript读取文件信息时出错的问题!(使用wsh运行.js文件) 问一下 求图片自动切换效果,要用在ASP.NET(c#)里面 问一个简单的css问题 关于正则表达式的问题! web页面问题,不知道有没有高手帮忙解答? 当一个类型为textarea的value发生变化时,给出提示信息的javascript怎样写? <hr size='1'>可打印出来的水平线还是很粗,有没办法让它更细? 在线等! 如何取消原来的键盘事件?
showModalDialog("aa.htm",window)调用时:
var mm = window.dialogArguments;
mm.document.formName.submit();
formname的名称应该于你父窗口的名称相一致!!!
我用了window.opener.alert(window.opener.document.all.filterForm.pageto.value);测试
母窗口会正常的弹出说明窗口,其中filterForm是母窗口的表单名字,
pageto是一个text文本控件。opener.window.location.reload();也正常刷新。
而一旦改用window.opener.document.all.filterForm.submit();IE就报错,不支持此方法。
我又在母窗口用了document.filterForm.submit();会正常提交;
不知道是不是新开的窗口不能控制母窗口的提交动作。
opener.window.document.all.filterForm.submit();
我最早就是使用opener.window.document.all.filterForm.submit();结果IE脚本调试报错,说不支持此方法。javascript真的不容易调试。
你一开始好象是用的opener.window.document.formName.submit();
少了一个all是不行的。opener.window.document.all.filterForm.submit();我在ie5下调试是正确的:)
不过我已经通过触发父窗口表单的提交按钮来实现了。
opener.window.document.all.filterForm.submit.click();
其中submit为提交按钮的name