Compare Revisions

Window.frames

Revision 79125:

Revision 79125 by Rvts on

Revision 79126:

Revision 79126 by Rvts on

Title:
window.frames
window.frames
Slug:
DOM/window.frames
DOM/window.frames
Tags:
DOM, Gecko, NeedsContent, DOM_0, NeedsUpdate, "Gecko DOM Reference"
DOM, Gecko, NeedsContent, DOM_0, NeedsUpdate, "Gecko DOM Reference"
Content:

Revision 79125
Revision 79126
n10    <h3 name="Summary">n10    <h3 name="Example">
11      Summary11      Example
t13    <p>t13    <pre class="eval">
14      Returns an array of the subframes in the current window.14var frames = window.frames; // or // var frames = window.parent.f
 >rames;
15    </p>15for (var i = 0; i &lt; frames.length; i++) { 
16  // do something with each subframe as frames[i]
17  frames[i].document.body.style.background = "red";
18}
19</pre>

Back to History