Our volunteers haven't translated this article into 한국어 yet. Join us and help get the job done!
You can also read the article in English (US).

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
}

Specifications

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  

Browser compatibility

FeatureChromeEdgeFirefoxInternet ExplorerOperaSafari
Basic support Yes ? Yes ? ? ?
FeatureAndroid webviewChrome for AndroidEdge mobileFirefox for AndroidOpera AndroidiOS SafariSamsung Internet
Basic support Yes Yes ? Yes ? ? ?

문서 태그 및 공헌자

최종 변경: connorshea,