javascript windows对象
Represents a browser window or frame. This is the top-level object for eachdocument,Location, andHistory object group(官方英文解释)
主要事件:
主要属性:
closed : Specifies whether a window has been closed. 窗口是否关闭
defaultStatus : Reflects the default message displayed in the window's status bar. 返回 窗口状态栏信息
document :Contains information on the current document, and provides 方法s for displaying HTML output to the user. 文档对象
frames :An array reflecting all the frames in a window. 窗口所包含的frames对象
history :Contains information on the URLs that the client has visited within a window. 包含浏览器所访问过的url对象集合
innerHeight : Specifies the vertical dimension, in pixels, of the window's content area. 以像素px为单位返回文档区域的高度;
innerWidth :Specifies the horizontal dimension, in pixels, of the window's content area. 以像素px为单位返回文档区域的宽度;
length :The number of frames in the window. 窗口所包含的frames对象长度
location :Contains information on the current URL. 当前url地址对象信息
locationbar :Represents the browser window's location bar. 返回当前浏览器地址栏信息
menubar : Represents the browser window's menu bar. 返回浏览器菜单栏
name :A unique name used to refer to this window. 返回当前窗口的名称
opener :Specifies the window name of the calling document when a window is opened using the open
outerHeight :Specifies the vertical dimension, in pixels, of the window's outside boundary. 返回窗口的外部边界高度(内容区域以外的)
outerWidth :Specifies the horizontal dimension, in pixels, of the window's outside boundary. 返回窗口的外部边界宽度(内容区域以外的)
pageXOffset :Provides the current x-position, in pixels, of a window's viewed page.
pageYOffset :Provides the current y-position, in pixels, of a window's viewed page.
parent :A synonym for a window or frame whose frameset contains the current frame. 当一个frames被包含在父窗口则返回父窗口的名称
personalbar :Represents the browser window's personal bar (also called the directories bar).
scrollbars :Represents the browser window's scroll bars. 浏览器滚动条对象
self :A synonym for the current window.
status :Specifies a priority or transient message in the window's status bar. 状态栏的瞬间信息
statusbar :Represents the browser window's status bar. 状态栏对象
toolbar :Represents the browser window's tool bar.
top :A synonym for the topmost browser window.
window :A synonym for the current window. 当前窗口对象
方法概览: