How to use window object length in JavaScript

In this article i am going to explain about window object length property.
  • 1650

Length property in JavaScript window object

The length property returns the number of frames in the current window.

Syntax of Length property


Browser support

The length property is supported in all major browser.

Example of Length  property




<iframe src=""></iframe>

<iframe src=""></iframe>

<script type="text/javascript">

    for (var a = 0; a < frames.length; a++) {

        frames[a].location = ""







You may also want to read these related articles :here

Ask Your Question 

Got a programming related question? You may want to post your question here

Programming Answers here


More Articles

© 2018 DotNetHeaven. All rights reserved.