window对象的学习(三)

本文深入探讨了Windows对象中的关键属性,包括closed、defaultStatus、dialogArguments等,详细解释了每个属性的功能及用途,为开发者提供了一站式的学习资源。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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记录窗口的高度和宽度。其他的属性以此类推....

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值