window对象的学习(三)

Window对象中的Attributes/Properties(属性),用于描述当前窗口的属性和状态。

以下是摘自MSDN文档的说明:

 

PropertyDescription
closedRetrieves whether the referenced window is closed.
defaultStatusSets or retrieves the default message displayed in the status bar at the bottom of the window.
dialogArgumentsRetrieves the variable or array of variables passed into the modal dialog window.
dialogHeightSets or retrieves the height of the modal dialog window.
dialogLeftSets or retrieves the left coordinate of the modal dialog window.
dialogTopSets or retrieves the top coordinate of the modal dialog window.
dialogWidthSets or retrieves the width of the modal dialog window.
frameElementRetrieves the frame or iframe object that is hosting the window in the parent document.
lengthSets or retrieves the number of objects in a collection.
nameSets or retrieves a value that indicates the window name.
offscreenBufferingSets or retrieves whether objects are drawn offscreen before being made visible to the user.
openerSets or retrieves a reference to the window that created the current window.
parentRetrieves the parent of the window in the object hierarchy.
returnValueSets or retrieves the value returned from the modal dialog window.
screenLeftRetrieves 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.
screenTopRetrieves the y-coordinate of the top corner of the browser's client area, relative to the top corner of the screen.
selfRetrieves a reference to the current window or frame.
statusSets or retrieves the message in the status bar at the bottom of the window.
topRetrieves the topmost ancestor window.

 

例如closed属性,记录当前窗口是否关闭。dialogHeight,dialogWidth记录窗口的高度和宽度。其他的属性以此类推....

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值