In this section, we will learn what the Window length property is and how to use it in JavaScript.
JavaScript Window length Property
In an HTML document, we can create multiple frames via <iframe> and <frame> elements for different purposes.
So if for whatever reason we needed to find out how many frames are on a page, we can use the `length` property.
Note: the `frame` element is not supported in the HTML5.
Also, this property is read-only.
Window length Property Syntax:
window.length;
Example: using JavaScript Window length Property
See the Pen using JavaScript Window length Property by Omid Dehghan (@odchan1) on CodePen.
Output: 3