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
这篇文档对你有帮助吗?
谢谢你的反馈!