js弹出窗体 关闭 刷新 返回值问题
2010-07-07 10:42
435 查看
返回
function openlimsprdctSelect() {
var returnValue = window.showModalDialog('SelectChildPage.aspx?type=limslocalprdct', window, 'dialogWidth=350px;dialogHeight=500px;resizable:yes;scroll:no');
if (returnValue != undefined)
//Form1.Text1.value=returnValue;
window.event.srcElement.value = returnValue;
}
Response.Write("<script language=javascript>window.returnValue='" + ListBoxSelect.SelectedValue + "';window.opener=null;window.close();</script>");
刷新
Response.Write("<script>alert('修改成功');window.opener.refresh();window.opener=null;window.close();</script>");
<script type="text/javascript" language="javascript">
function refresh() {
this.location = this.location; //刷新
}
</script>
function openlimsprdctSelect() {
var returnValue = window.showModalDialog('SelectChildPage.aspx?type=limslocalprdct', window, 'dialogWidth=350px;dialogHeight=500px;resizable:yes;scroll:no');
if (returnValue != undefined)
//Form1.Text1.value=returnValue;
window.event.srcElement.value = returnValue;
}
Response.Write("<script language=javascript>window.returnValue='" + ListBoxSelect.SelectedValue + "';window.opener=null;window.close();</script>");
刷新
Response.Write("<script>alert('修改成功');window.opener.refresh();window.opener=null;window.close();</script>");
<script type="text/javascript" language="javascript">
function refresh() {
this.location = this.location; //刷新
}
</script>
相关文章推荐
- js 弹出子页面与关闭子页面刷新父页面的问题
- js 子窗体关闭刷新父窗体
- js 弹出子页面与关闭子页面刷新父页面的问题
- 弹出dialog的两种方法; 以及在关闭的时候刷新父窗体; 有时候同样的东西用这种窗口不起作用另外一种运行ok
- 关于模式窗体关闭后刷新主页面的问题
- js如何关闭当前页,而不弹出提示框 尤其是万恶的IE||关闭子窗口同时刷新父窗口
- 怎样将弹出的模式窗口关闭并刷新父窗体?
- 怎么样在第一个窗体弹出的第二个窗体上,在关闭第二个窗体时刷新第一个窗体
- js弹出窗口、右下角浮动窗体(最小化最大化关闭)
- 弹出窗体后再刷新的问题
- Js弹出页面,关闭页面返回值
- js关闭子窗体刷新父窗体实现方法
- 有模式弹出子窗体,关闭时刷新父窗体
- ASP.NET 弹出的窗体关闭后刷新上级窗体
- jquery.messager.js兼容性问题修改,修复关闭弹出框问题
- JS窗口问题处理:使弹出窗口保持前端显示的几种方法,及window窗体对象open()和showModalDialog()用法
- JS实现刷新:在窗体打开或者关闭的时候使用
- 解决JavaScript页面刷新 与 弹出窗口问题 无提示关闭窗口
- 关闭js弹出窗体时,可能会弹出警告
- 已经可的窗体不能显示为模式对话框,关闭弹出修改窗口后主窗口DATAGRIDVIEW的刷新