• Skip to main content
  • Skip to search
  • Skip to select language

Learn front-end development with high quality, interactive courses from Scrimba. Enroll now!

MDN Web Docs
  • References
    • Overview / Web Technology

      Web technology reference for developers

    • HTML

      Structure of content on the web

    • CSS

      Code used to describe document style

    • JavaScript

      General-purpose scripting language

    • HTTP

      Protocol for transmitting web resources

    • Web APIs

      Interfaces for building web applications

    • Web Extensions

      Developing extensions for web browsers

    • Accessibility

      Build web projects usable for all

    • Web Technology

      Web technology reference for developers

  • Learn
    • Overview / MDN Learning Area

      Learn web development

    • MDN Learning Area

      Learn web development

    • HTML

      Learn to structure web content with HTML

    • CSS

      Learn to style content using CSS

    • JavaScript

      Learn to run scripts in the browser

    • Accessibility

      Learn to make the web accessible to all

  • Plus
    • Overview

      A customized MDN experience

    • AI Help

      Get real-time assistance and support

    • Updates

      All browser compatibility updates at a glance

    • Documentation

      Learn how to use MDN Plus

    • FAQ

      Frequently asked questions about MDN Plus

  • Curriculum New
  • Blog
    • Playground

      Write, test and share your code

    • HTTP Observatory

      Scan a website for free

    • AI Help

      Get real-time assistance and support

  1. Webtechnologie für Entwickler
  2. Web APIs
  3. Fenster
  4. length
    • Is this useful?
    • English (US)
    • Français
    • 日本語
    • 한국어
    • Português (do Brasil)
    • Русский
    • 中文 (简体)

Experiment: Dieser Inhalt wurde automatisch aus dem Englischen übersetzt, und kann Fehler enthalten.

In diesem Artikel

  • Wert
  • Beispiele
  • Spezifikationen
  • Browser-Kompatibilität
  1. Fenster
  2. Instanzeigenschaften
    1. caches
    2. closed
    3. cookieStore
    4. credentialless Experimentell
    5. crossOriginIsolated
    6. crypto
    7. customElements
    8. devicePixelRatio
    9. document
    10. documentPictureInPicture Experimentell
    11. event Veraltet
    12. external Veraltet
    13. fence Experimentell
    14. frameElement
    15. frames
    16. fullScreen Nicht standardisiert
    17. history
    18. indexedDB
    19. innerHeight
    20. innerWidth
    21. isSecureContext
    22. launchQueue Experimentell
    23. length
    24. localStorage
    25. location
    26. locationbar
    27. menubar
    28. mozInnerScreenX Nicht standardisiert
    29. mozInnerScreenY Nicht standardisiert
    30. name
    31. navigation Experimentell
    32. navigator
    33. opener
    34. orientation Veraltet
    35. origin
    36. originAgentCluster
    37. outerHeight
    38. outerWidth
    39. parent
    40. performance
    41. personalbar
    42. scheduler
    43. screen
    44. screenLeft
    45. screenTop
    46. screenX
    47. screenY
    48. scrollbars
    49. scrollMaxX Nicht standardisiert
    50. scrollMaxY Nicht standardisiert
    51. scrollX
    52. scrollY
    53. self
    54. sessionStorage
    55. sharedStorage Experimentell
    56. speechSynthesis
    57. status Veraltet
    58. statusbar
    59. toolbar
    60. top
    61. trustedTypes
    62. visualViewport
    63. window
  3. Instanzmethoden
    1. alert()
    2. atob()
    3. blur() Veraltet
    4. btoa()
    5. cancelAnimationFrame()
    6. cancelIdleCallback()
    7. captureEvents() Veraltet
    8. clearImmediate() Nicht standardisiert Veraltet
    9. clearInterval()
    10. clearTimeout()
    11. close()
    12. confirm()
    13. createImageBitmap()
    14. dump() Nicht standardisiert
    15. fetch()
    16. fetchLater() Experimentell
    17. find() Nicht standardisiert
    18. focus()
    19. getComputedStyle()
    20. getDefaultComputedStyle() Nicht standardisiert
    21. getScreenDetails() Experimentell
    22. getSelection()
    23. matchMedia()
    24. moveBy()
    25. moveTo()
    26. open()
    27. postMessage()
    28. print()
    29. prompt()
    30. queryLocalFonts() Experimentell
    31. queueMicrotask()
    32. releaseEvents() Veraltet
    33. reportError()
    34. requestAnimationFrame()
    35. requestFileSystem() Nicht standardisiert Veraltet
    36. requestIdleCallback()
    37. resizeBy()
    38. resizeTo()
    39. scroll()
    40. scrollBy()
    41. scrollByLines() Nicht standardisiert
    42. scrollByPages() Nicht standardisiert
    43. scrollTo()
    44. setImmediate() Nicht standardisiert Veraltet
    45. setInterval()
    46. setResizable() Nicht standardisiert Veraltet
    47. setTimeout()
    48. showDirectoryPicker() Experimentell
    49. showOpenFilePicker() Experimentell
    50. showSaveFilePicker() Experimentell
    51. sizeToContent() Nicht standardisiert
    52. stop()
    53. structuredClone()
    54. webkitConvertPointFromNodeToPage() Nicht standardisiert Veraltet
    55. webkitConvertPointFromPageToNode() Nicht standardisiert Veraltet
  4. Events
    1. afterprint
    2. appinstalled
    3. beforeinstallprompt
    4. beforeprint
    5. beforeunload
    6. blur
    7. copy
    8. cut
    9. devicemotion
    10. deviceorientation
    11. deviceorientationabsolute
    12. error
    13. focus
    14. gamepadconnected
    15. gamepaddisconnected
    16. hashchange
    17. languagechange
    18. load
    19. message
    20. messageerror
    21. offline
    22. online
    23. orientationchange Veraltet
    24. pagehide
    25. pagereveal
    26. pageshow
    27. pageswap
    28. paste
    29. popstate
    30. rejectionhandled
    31. resize
    32. scrollsnapchange Experimentell
    33. scrollsnapchanging Experimentell
    34. storage
    35. unhandledrejection
    36. unload Veraltet
    37. vrdisplayactivate Nicht standardisiert Veraltet
    38. vrdisplayconnect Nicht standardisiert Veraltet
    39. vrdisplaydeactivate Nicht standardisiert Veraltet
    40. vrdisplaydisconnect Nicht standardisiert Veraltet
    41. vrdisplaypresentchange Nicht standardisiert Veraltet
  5. Vererbung
    1. EventTarget

In diesem Artikel

  • Wert
  • Beispiele
  • Spezifikationen
  • Browser-Kompatibilität

Window: length-Eigenschaft

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.

  • Learn more
  • See full compatibility
  • Report feedback

Gibt die Anzahl der Frames (entweder <frame> oder <iframe> Elemente) im Fenster zurück.

Wert

Eine Zahl.

Beispiele

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

Spezifikationen

Specification
HTML
# dom-length-dev

Browser-Kompatibilität

MDN-Feedback-Box

Diese Seite wurde automatisch aus dem Englischen übersetzt.

Übersetzung auf GitHub anzeigen • Fehler mit dieser Übersetzung melden
MDN logo

Your blueprint for a better internet.

  • MDN on Bluesky
  • MDN on Mastodon
  • MDN on X (formerly Twitter)
  • MDN on GitHub
  • MDN Blog RSS Feed

MDN

  • About
  • Blog
  • Careers
  • Advertise with us

Support

  • Product help
  • Report an issue

Our communities

  • MDN Community
  • MDN Forum
  • MDN Chat

Developers

  • Web Technologies
  • Learn Web Development
  • MDN Plus
  • Hacks Blog
  • Website Privacy Notice
  • Cookies
  • Legal
  • Community Participation Guidelines

Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2025 by individual mozilla.org contributors. Content available under a Creative Commons license.