阅读(2486) (17)

window属性:length

2018-04-11 10:50:08 更新

length属性

length 属性返回 window 中的帧数(<frame>或者<iframe>元素)。

length属性语法

framesCount = window.length;
  • framesCount 是帧的数量。

length属性示例

if (window.length) {
  // this is a document with subframes
}

规范

规范 状态 注释
HTML Living Standard 
该规范中'Window.length'的定义。
Living Standard
 
HTML5 
该规范中'Window.length'的定义。
Recommendation