VOOZH about

URL: https://www.geeksforgeeks.org/html/html-dom-window-length-property/

⇱ HTML DOM Window length Property - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

HTML DOM Window length Property

Last Updated : 11 Jul, 2025

The HTML Window length property is used for returning the number of <iframe> elements in the current window. It is a read-only property and it returns a number that represents the number of frames in the current window.

Syntax:

window.length

Return Value: It returns a numeric value that represents the number of frames in the current window

The below program illustrates the Window length Property:

Example: Returning the number of <iframe> elements in the current window.

Output:

👁 Image

Supported Browsers: The browsers supported by Window length Property are listed below:  

  • Google Chrome 1
  • Edge 12
  • Internet Explorer 4
  • Firefox 1
  • Opera 12.1
  • Safari 1

We have a Cheat Sheet on Javascript where we covered all the important topics of Javascript to check those please go through Javascript Cheat Sheet-A Basic guide to JavaScript.

Comment
Article Tags: