• Web APIs
  • caches
  • credentialless Experimental
  • devicePixelRatio
  • documentPictureInPicture Experimental
  • event Deprecated
  • external Deprecated
  • fence Experimental
  • fullScreen Non-standard
  • innerWidth
  • launchQueue Experimental
  • locationbar
  • mozInnerScreenX Non-standard
  • mozInnerScreenY Non-standard
  • navigation Experimental
  • orientation Deprecated
  • originAgentCluster Experimental
  • performance
  • screenLeft
  • scrollbars
  • scrollMaxX Non-standard
  • scrollMaxY Non-standard
  • sessionStorage
  • sharedStorage Experimental
  • status Deprecated
  • trustedTypes
  • atob()
  • back() Non-standard Deprecated
  • blur() Deprecated
  • captureEvents() Deprecated
  • clearImmediate() Non-standard Deprecated
  • confirm()
  • dump() Non-standard
  • find() Non-standard
  • forward() Non-standard Deprecated
  • getDefaultComputedStyle() Non-standard
  • getScreenDetails() Experimental
  • moveTo()
  • prompt()
  • queryLocalFonts() Experimental
  • releaseEvents() Deprecated
  • requestFileSystem() Non-standard Deprecated
  • scroll()
  • scrollByLines() Non-standard
  • scrollByPages() Non-standard
  • setImmediate() Non-standard Deprecated
  • setResizable() Non-standard Deprecated
  • showDirectoryPicker() Experimental
  • showModalDialog() Non-standard Deprecated
  • showOpenFilePicker() Experimental
  • showSaveFilePicker() Experimental
  • sizeToContent() Non-standard
  • webkitConvertPointFromNodeToPage() Non-standard Deprecated
  • webkitConvertPointFromPageToNode() Non-standard Deprecated
  • Events
    1. beforeprint
    2. cut
    3. error
    4. hashchange
    5. messageerror
    6. orientationchange Deprecated
    7. pageswap
    8. resize
    9. scrollsnapchange Experimental
    10. scrollsnapchanging Experimental
    11. unload Deprecated
    12. vrdisplayactivate Non-standard Deprecated
    13. vrdisplayconnect Non-standard Deprecated
    14. vrdisplaydeactivate Non-standard Deprecated
    15. vrdisplaydisconnect Non-standard Deprecated
    16. vrdisplaypresentchange Non-standard Deprecated
  • Inheritance
    1. <frame> or <iframe> elements) in the window.

  • Value

    A number.

    Examples

    js
    if (window.length) {
      / this is a document with subframes
    }
    

    Specifications

    Specification
    Product help
  • Instance properties
    1. credentialless\nExperimental\n
    2. devicePixelRatio
    3. external\nDeprecated\n
    4. fullScreen\nNon-standard\n
    5. innerWidth
    6. localStorage
    7. mozInnerScreenX\nNon-standard\n
    8. navigator
    9. originAgentCluster\nExperimental\n
    10. performance
    11. screenLeft
    12. scrollbars
    13. scrollY
    14. speechSynthesis
    15. top
    16. alert()
    17. btoa()
    18. clearImmediate()\nNon-standard\n\nDeprecated\n
    19. confirm()
    20. find()\nNon-standard\n
    21. getDefaultComputedStyle()\nNon-standard\n
    22. moveBy()
    23. print()
    24. releaseEvents()\nDeprecated\n
    25. requestIdleCallback()
    26. scrollBy()
    27. setImmediate()\nNon-standard\n\nDeprecated\n
    28. showDirectoryPicker()\nExperimental\n
    29. sizeToContent()\nNon-standard\n
    30. webkitConvertPointFromPageToNode()\nNon-standard\n\nDeprecated\n
  • Events
    1. beforeprint
    2. cut
    3. error
    4. hashchange
    5. messageerror
    6. pagehide
    7. paste
    8. scrollsnapchange\nExperimental\n
    9. unload\nDeprecated\n
    10. vrdisplaydisconnect\nNon-standard\n\nDeprecated\n
    11. EventTarget
  • ","source":{"folder":"en-us/web/api/window/length","github_url":"https://github.com/mdn/content/blob/main/files/en-us/web/api/window/length/index.md","last_commit_url":"https://github.com/mdn/content/commit/62cedc63226017e9e7d0718b6fea3529ca8dbf37","filename":"index.md"},"summary":"Returns the number of frames (either or\n