1、刷新当前页 写在 html 中
<a href=
"
javascript:window.location.reload();
">刷新</a>
2、跳转 ,写在 html 中
function gotourl(url)
{
// window.top.PageFrame.location.href= url; // 框架时用
window.location.href= url;
}
使用方法:
gotourl( ' SearchMessage.aspx ');
{
// window.top.PageFrame.location.href= url; // 框架时用
window.location.href= url;
}
使用方法:
gotourl( ' SearchMessage.aspx ');
3、
刷新父窗口,同时关闭当前这个打开的子窗口,写在 C# 代码里。
Response.Write(
"
<script>window.opener.location.reload();</script>
");
Response.Write( " <script>window.alert('此信息彻底删除!');window.opener=null;window.close();</script> ");
Response.Write( " <script>window.alert('此信息彻底删除!');window.opener=null;window.close();</script> ");
4、
<body οnlοad=
"
opener.location.reload()
">
开窗时刷新父窗口
<body οnunlοad= " opener.location.reload() ">
关窗时刷新父窗口
或
<body οnlοad= " window.opener.location.reload(); ">
开窗时刷新父窗口
<body οnunlοad= " opener.location.reload() ">
关窗时刷新父窗口
或
<body οnlοad= " window.opener.location.reload(); ">