Window.length

번역이 완료되지 않았습니다. Please help translate this article from English

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 1Edge Full support 12Firefox Full support 1IE Full support 4Opera Full support ≤12.1Safari Full support 1WebView Android Full support 1Chrome Android Full support 18Firefox Android Full support 4Opera Android Full support ≤12.1Safari iOS Full support 1Samsung Internet Android Full support 1.0

Legend

Full support  
Full support