代码改变世界

在A窗口中打开B窗口,在B窗口中操作完以后关闭B窗口,同时自动刷新A窗口

2012-01-31 10:09  呦菜  阅读(446)  评论(0编辑  收藏  举报
function closeWin()
{
hasClosed = true;
window.opener.location="javascript:reloadPage();";
window.opener=null;
window.close();
}
function reloadPage()
{
history.go(0);
document.execCommand("refresh")
document.location = document.location;
document.location.reload();
}