How to use window object frames in JavaScript

In this article, i am going to explain about use of frames property in JavaScript.
  • 1900

Frames  property in JavaScript window object

The frame property returns an array of all the frames in current window.

Syntax of frames  property


Browser support

The frames property is supported in all major browser.

Example of frames  property



<iframe src=""></iframe>

<iframe src=""></iframe>


<script type="text/javascript">

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

        frames[i].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

© 2020 DotNetHeaven. All rights reserved.