1、window.opener.location.reload();
    意思是让打开的父窗口刷新。window.opener指的是本窗口的父窗口,window.opener.location.href只是一个链接,如果想实现父窗口的提交就调用,window.opener.action="" 和window.opener.submit(); 方法,但是不幸的是这段代码在firefox下不能运行,解决的办法为在父窗口中写一个提交的function在子窗口中通过window.opener.functionname()调用。通常在使用window.opener的时候要去判断父窗口的状态,如果父窗口被关闭或者更新,就会出错,解决办法是加上如下的验证if(window.opener && !window.opener.closed)
2、window.location.href和location.href
    都是在本页跳转
3、parent.location.href
    意思是在上一层页面跳转
4、top.location.href
    意思是是最外层的页面跳转
posted on 2013-09-23 16:39  千里烟波226  阅读(265)  评论(0编辑  收藏  举报