Window对象中的Attributes/Properties(属性),用于描述当前窗口的属性和状态。
以下是摘自MSDN文档的说明:
Property | Description |
---|---|
closed | Retrieves whether the referenced window is closed. |
defaultStatus | Sets or retrieves the default message displayed in the status bar at the bottom of the window. |
dialogArguments | Retrieves the variable or array of variables passed into the modal dialog window. |
dialogHeight | Sets or retrieves the height of the modal dialog window. |
dialogLeft | Sets or retrieves the left coordinate of the modal dialog window. |
dialogTop | Sets or retrieves the top coordinate of the modal dialog window. |
dialogWidth | Sets or retrieves the width of the modal dialog window. |
frameElement | Retrieves the frame or iframe object that is hosting the window in the parent document. |
length | Sets or retrieves the number of objects in a collection. |
name | Sets or retrieves a value that indicates the window name. |
offscreenBuffering | Sets or retrieves whether objects are drawn offscreen before being made visible to the user. |
opener | Sets or retrieves a reference to the window that created the current window. |
parent | Retrieves the parent of the window in the object hierarchy. |
returnValue | Sets or retrieves the value returned from the modal dialog window. |
screenLeft | Retrieves the x-coordinate of the upper left-hand corner of the browser's client area, relative to the upper left-hand corner of the screen. |
screenTop | Retrieves the y-coordinate of the top corner of the browser's client area, relative to the top corner of the screen. |
self | Retrieves a reference to the current window or frame. |
status | Sets or retrieves the message in the status bar at the bottom of the window. |
top | Retrieves the topmost ancestor window. |
例如closed属性,记录当前窗口是否关闭。dialogHeight,dialogWidth记录窗口的高度和宽度。其他的属性以此类推....