寻她模板站 ┃ 精美源于细节,细节造就成功。
繁体中文    广告服务
百度搜藏    加入收藏
业务咨询
您的位置: 首页 >> 图形图像教程 >> 更新记录后关闭子窗口并刷新父窗口的JS
更新记录后关闭子窗口并刷新父窗口的JS
更新时间:2007-11-12 21:18:33  作者:  来源:  浏览次数:282  文字大小:【】【】【
    以A 代码为例,使用一个条件句决定代码执行顺序,你可以将它放在记录更新之后(将转向目标后加上条件参数,例如转向目标为post.a ?action=go)


<% if Request("action")="go" then %>
<script language="JavaScript">
<!--
function refreshParent() {
window.opener.location.href = window.opener.location.href;
if (window.opener.progre Window) 
window.opener.progre Window.close();
window.close();
}
//-->
</script>
< ody bgcolor="#f5f5f3" leftmargin="0" topmargin="0" onLoad="refreshParent()"> lt;%end if%>