Window: length property


目录

Returns the number of frames (either frame or iframe elements) in the window.

Value

A number.

Examples

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

Specifications

Browser compatibility


版本号 #3
由 壳壳虫 创建于 2026-10-31 03:27:53 UTC
由 cocobook-sync 更新于 2026-11-04 17:35:12 UTC