发表于: sitebuild | 作者: | 日期: 2008/11/22 07:11

概述
在窗体的继承中,返回对顶层窗体的引用。

语法
var topWindow = window.top;

说明
window.parent属性返回当前窗体的父窗体,而window.top则返回当前窗体的最顶层窗体。该属性在框架集的处理中尤其有用。

参考:
https://developer.mozilla.org/En/DOM/Window.top

: https://blog.darkmi.com/2008/11/22/530.html

本文相关评论 - 1条评论都没有呢
Post a comment now » 本文目前不可评论

No comments yet.

Sorry, the comment form is closed at this time.