C# 关闭弹出页面问题
2008-10-20 09:39
239 查看
说清楚点
height=100 width=400 "menubar=no "mywin"
<script language=javascript>function outPut(){ var text = document.abc.text.value; var win = window.open("" 取代父窗口表单以前的值 这是关键 //把子窗口中表单的值回传给父窗口 对父窗口操作使用opener对象 使用self对象 resizeable=yes"); win.document.writeln("<title>输出结果</title>"); win.document.writeln("你的信息是:<p>"); win.document.writeln(text); win.document.writeln("<input type=text name=child value=子窗口信息>"); //对子窗口本身操作 然后关闭子窗口 win.document.writeln("<input type=button value=关闭自己 onClick='window.opener.abc.text.value=self.child.value;self.close()'>"); //可以控制关闭父窗口 win.document.writeln("<input type=button value=关闭父窗口 onClick='window.opener.opener=null;window.opener.close()'>"); //刷新父窗口 win.document.writeln("<input type=button value=刷新父窗口 onClick='window.opener.location.reload()'>"); win.document.close(); win.focus();}</script><form name=abc method=post><input type=text name=text size=50><input type=button value=提交 onClick="outPut()"></form>
|||
你是要原页面刷新还是不刷新啊
height=100 width=400 "menubar=no "mywin"
<script language=javascript>function outPut(){ var text = document.abc.text.value; var win = window.open("" 取代父窗口表单以前的值 这是关键 //把子窗口中表单的值回传给父窗口 对父窗口操作使用opener对象 使用self对象 resizeable=yes"); win.document.writeln("<title>输出结果</title>"); win.document.writeln("你的信息是:<p>"); win.document.writeln(text); win.document.writeln("<input type=text name=child value=子窗口信息>"); //对子窗口本身操作 然后关闭子窗口 win.document.writeln("<input type=button value=关闭自己 onClick='window.opener.abc.text.value=self.child.value;self.close()'>"); //可以控制关闭父窗口 win.document.writeln("<input type=button value=关闭父窗口 onClick='window.opener.opener=null;window.opener.close()'>"); //刷新父窗口 win.document.writeln("<input type=button value=刷新父窗口 onClick='window.opener.location.reload()'>"); win.document.close(); win.focus();}</script><form name=abc method=post><input type=text name=text size=50><input type=button value=提交 onClick="outPut()"></form>
|||
你是要原页面刷新还是不刷新啊
相关文章推荐
- window.showModalDialog()弹出页面的关闭问题
- 一个非常实用的C#弹出对话框类(包括弹出对话框,跳转到指定页面,关闭窗口)
- C#点击iframe页面的控件(button),弹出层,关闭弹出层时只刷新父页面中的iframe里面的页面
- 解决aspx页面弹出对话框时,有时正常,有时出现乱码,有时弹出又马上关闭的问题
- window.showModalDialog()弹出页面的关闭问题
- jquery Jbox 插件实现弹出窗口在修改的数据之后,关闭弹出窗口刷新父页面的问题
- window.showModalDialog方式/模式窗口数据不刷新(缓存)问题/模式窗口中,链接弹出新窗口问题/无提示关闭页面的方法
- 解决关闭dialog时弹出空页面的问题
- layer弹出层的关闭及父页面的刷新问题
- 解决JavaScript页面刷新 与 弹出窗口问题 无提示关闭窗口
- javascript弹出及关闭窗口及页面刷新问题总结。
- jquery Jbox 插件实现弹出窗口在修改的数据之后,关闭弹出窗口刷新父页面的问题
- C# 关闭页面和弹出页面,参数传值是汉字时
- C#web页面弹出confirm对话框的问题
- 实现关闭弹出页面后刷新父页
- JavaScript页面刷新与弹出窗口问题的解决方法
- 最近写一个C#关于U盘的操作,在弹出U盘是遇到了些问题,C#调WINdoWs底层的东西太麻烦了,看样子要看看VC或C了
- 在iframe中使bootstrap的模态框在父页面弹出问题
- 新手遇到的问题:Easy UI的对话框老是在页面加载完成后自动弹出