Window.length

You’re reading the English version of this content since no translation exists yet for this locale. Help us translate this article!

window의 frame 개수를 반환합니다. (<frame> 또는 <iframe> 요소들 중 하나) 

신텍스

framesCount = window.length;
  • framesCount 는 frame의 개수이다.

예제

if (window.length) {
  // document의 subframes
}

명세서

Specification Status Comment
HTML Living Standard
The definition of 'Window.length' in that specification.
Living Standard  
HTML5
The definition of 'Window.length' in that specification.
Recommendation  

브라우저 호환성

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
lengthChrome Full support YesEdge Full support 12Firefox Full support YesIE ? Opera Full support YesSafari Full support YesWebView Android Full support YesChrome Android Full support YesFirefox Android Full support YesOpera Android Full support YesSafari iOS Full support YesSamsung Internet Android Full support Yes

Legend

Full support  
Full support
Compatibility unknown  
Compatibility unknown