--- title: Window.length slug: Web/API/Window/length translation_of: Web/API/Window/length ---
window의 frame 개수를 반환합니다. ({{HTMLElement("frame")}} 또는 {{HTMLElement("iframe")}} 요소들 중 하나)
framesCount = window.length;
framesCount 는 frame의 개수이다.if (window.length) {
// document의 subframes
}
| Specification | Status | Comment |
|---|---|---|
| {{SpecName('HTML WHATWG','browsers.html#dom-length','Window.length')}} | {{Spec2('HTML WHATWG')}} | |
| {{SpecName('HTML5 W3C', 'browsers.html#dom-length', 'Window.length')}} | {{Spec2('HTML5 W3C')}} |
{{Compat("api.Window.length")}}