Compare Revisions

Window.frames

Revision 79124:

Revision 79124 by Rvts on

Revision 79125:

Revision 79125 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 79124
Revision 79125
n27    <h3 name="Example">n
28      Example
29    </h3>
30    <pre class="eval">
31var frames = window.frames; // or // var frames = window.parent.f
>rames; 
32for (var i = 0; i &lt; frames.length; i++) { 
33  // do something with each subframe as frames[i]
34  frames[i].document.body.style.background = "red";
35}
36</pre>
t38      asast28      <br>

Back to History