Summary
Returns the number of frames (either <frame>
or <iframe>
elements) in the window.
Syntax
framesCount = window.length;
framesCount
is the number of frames.
Example
if (window.length) { // this is a document with subframes }
Specification
Specification | Status | Comment |
---|---|---|
WHATWG HTML Living Standard The definition of 'Window.length' in that specification. |
Living Standard |
Document Tags and Contributors
Tags:
Contributors to this page:
Delapouite,
cvrebert,
fscholz,
cpigat,
AshfaqHossain,
basemnassar11,
MHasan,
teoli,
kscarfone,
Sheppy,
ethertank,
Mgjbot,
Nickolay,
RobG,
Dria,
JesseW
Last updated by:
Delapouite,