js有关窗口关闭与刷新问题,问题解决必感谢! 子窗口中:window.onunload = function(){ window.opener.location.reload();} 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 也可以在body onunload=window.opener.location.href(父窗口地址); <% ArtDao artDao=new ArtDao(); if(artDao.update()) { out.println("<script>opener.location.reload();self.close();</script>"); } else { log.error("error:update failed."); throw new ArticleException("更新时遇到了不可预知的错误"); }%> //刷新主窗体并关闭子窗体 Response.Write("<script>window.opener.location.replace(opener.location);window.close();</script>"); window.onunload在窗体加载完以后不执行吗?好像也执行吧,不只是在关闭的时候执行。 zClip (ZeroClipboard)问题求助 求一个漂浮广告,鼠标移上去图片变大的 团片特效问题 网页有错误,null为空或不是对象的问题,请教大家了 简单frame框架伸缩问题 48分,“把JS跟CSS合并成一个文件”,谁这么用过,请讲一下,明白后立即结分,我就这么多分了 表单下拉菜单问题,大家支招... 为什么打印的时候总是出现打印机选择框(再问) 如何JS中控制打印字段? 怎么让图片或者层旋转? JS打印功能的問題 复杂些的工具条图标拖动?骨灰级定位专家来看看
ArtDao artDao=new ArtDao();
if(artDao.update())
{
out.println("<script>opener.location.reload();self.close();</script>");
}
else
{
log.error("error:update failed.");
throw new ArticleException("更新时遇到了不可预知的错误");
}
%>
Response.Write("<script>window.opener.location.replace(opener.location);window.close();</script>");