Window Relationships and Frames

本文探讨了网页中使用框架时各个窗口对象的关系及其特性。每个框架都有自己的窗口对象,并储存在frames集合中,可以通过数字或框架名称进行索引。top对象始终指向最外层的框架,即浏览器窗口本身。在框架内引用window对象时,它指向的是该框架特有的实例,而不是最顶层的窗口。此外,parent对象总是指向当前框架的直接父框架。

  If a page contains frames, each frame has its own window object and is stored in the frames collection. Within the frames collection, the window objects are indexed both by number and by the name of the frame. 

  The top object always points to the very top(outermost) frame, which is the browser window itself. Any code written within a frame that references the window object is pointing to that frame's unique instance rather than the topmost one.

  Another window object is called parent. The parent object always points to the current frame's immediate parent frame. 

转载于:https://www.cnblogs.com/linxd/p/4514964.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值