parent--------------------------------------------------------------------------------DescriptionReturns the parent object in the object hierarchy. Syntax object.parentResFor a document, the parent is the containing window. For a window defined using FRAME, the parent is the window that contains the corresponding FRAMESET definition. This property has read-only permission, meaning you can retrieve its current value, but not change it. Applies Towindow
top--------------------------------------------------------------------------------DescriptionSpecifies the topmost ancestor window, which is its own parent. Syntax object.topResThis property has read-only permission.Applies Towindow
reload()方法从心载入当前页面!
opener该属性返回对初始window对象(也就是,打开新窗口的代码所在的窗口)的引用
object.parentResFor a document, the parent is the containing window. For a window defined using FRAME, the parent is the window that contains the corresponding FRAMESET definition. This property has read-only permission, meaning you can retrieve its current value, but not change it. Applies Towindow
object.topResThis property has read-only permission.Applies Towindow
下面是一些回答的原句,是什么意思,有什么区别?
1) parent.parent.rightframe.location.reload() //当前层的上上一层中的一个frame,name为rightframe,不一定是最上一层的frame
2) top.rightframe.location.reload() //肯定是最上一层中的frame
3) parent.location.reload() //当前层的上一层
4) top.location.reload() //最上一层还有这样的回答:
self.location.reload() self是什么意思?//自己本身
window.opener.parent.main.location.reload() window, opener什么意思? //当前窗口是使用window.open来打开的,opener是打开该窗口的页面