window.showModalDialog和window.open关闭子页面时刷新父页面
来源:百度文库 编辑:神马文学网 时间:2024/04/27 13:43:00
父窗体打开页面的javascript
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("");
Response.Write("");
如果是window.open打开的:
Response.Write("") ;
Response.Write("");
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("");
Response.Write("");
如果是window.open打开的:
Response.Write("") ;
Response.Write("");
window.showModalDialog和window.open关闭子页面时刷新父页面
子页面 关闭父页面和实现最大化
水滴石穿之页面遮罩层实现、向window.open()打开的窗口POST数据
水滴石穿之页面遮罩层实现、向window.open()打开的窗口POST数据(转载)
The Open window
子框架页刷新父页面其它框架的办法
在用户离开页面(刷新、后退、关闭等)时提示信息
JS刷新当前页面
Window.ShowModalDialog使用手册-键盘寄生物 -JavaEye技术社区
CSS控制页面展开/关闭
修改了一个页面后,怎样自动刷新原页面?
避免刷新页面,自动跳回到页面顶部的办法
[JavaScript]window.open的post與get傳遞參數比較
自动刷新页面的实现方法总结
自动刷新页面的实现方法总结
点击返回并刷新返回页面
Ext.Window
Chat Window
window假死
用JS屏蔽页面F5刷新和Ctrl F查找功能
利用php和js来轻松实现页面数据的刷新
用JS屏蔽页面F5刷新和Ctrl F查找功能
ASP.NET 2.0无刷新页面新境界
培训ASP.NET 2.0,无刷新页面新境界!