window.showModalDialog和window.open关闭子页面时刷新父页面
来源:互联网 发布:c语言-b什么意思 编辑:程序博客网 时间:2024/05/16 06:31
父窗体打开页面的javascript
如果是window.open打开的:
function GoToPage(id) { var title="title"; var url="xxxxx.aspx?ID="+id+"&Radom="+Math.random();; var Width="700"; var Height="600"; var arguemnts = new Object(); arguemnts.window = window; if (document.all&&window.print) { window.showModalDialog(url,arguemnts,"dialogWidth:" + Width + "px;dialogHeight:" + Height + "px;center:yes;status:no;scroll:yes;help:no;"); } else { window.open(url,"","width=" + Width + "px,height=" + Height + "px,resizable=1,scrollbars=1"); } }
子页面执行代码后:
Response.Write("<script language='javascript'>window.dialogArguments.window.location = window.dialogArguments.window.location;</script>"); Response.Write("<script>self.close();</script>");
如果是window.open打开的:
Response.Write("<script language='javascript'>window.opener.location.热reload();</script>") ; Response.Write("<script language='javascript'>window.opener=null;window.close();</script>");
- window.showModalDialog和window.open关闭子页面时刷新父页面
- window.showModalDialog和window.open关闭子页面时刷新父页面
- window.showModalDialog和window.open关闭子页面时刷新父页面
- window.showModalDialog和window.open关闭子页面时刷新父页面
- window.showModalDialog和window.open关闭子页面时刷新父页面【转】
- window.showModalDialog和window.open关闭子页面时刷新父页面
- window.showModalDialog和window.open关闭子页面时刷新父页面
- window.showModalDialog关闭子页面刷新父页面
- window.showModalDialog 关闭当前页面刷新父页面
- window.showModalDialog 关闭当前页面刷新父页面
- window.open()关闭子页面父页面不刷新的解决方法
- window.open打开的窗口关闭后刷新父页面的子页面
- window.open页面关闭后刷新父页面
- [转]使用window.open替代window.ShowModalDialog,完成子页面和父页面之间的传值
- window.open 子页面刷新父页面
- window.open刷新页面
- window.showModalDialog刷新父页面的问题
- window的open方法和showModalDialog方法关闭时刷新父窗体
- glDrawArrays参数详解
- rootkit开发
- 如何使用CDT调试需要ROOT权限的LINUX程序
- VC中支持中文的字符串比较函数
- 用ndk编写Android环境下的pthread多线程程序
- window.showModalDialog和window.open关闭子页面时刷新父页面
- linux下利用rtc 实现精确定时器
- intent.category.LAUNCHER
- 02-常用对象API(String类-构造函数),字符串中euqals比较
- 内核I2C子系统详解
- cocos2d
- Android 9.png 图片浅析
- poll机制分析
- jquery实现搜索框类似提示功