Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

window parent frames

var frames = window.frames; // or // var frames = window.parent.frames;
for (var i = 0; i < frames.length; i++) {
  // do something with each subframe as frames[i]
  frames[i].document.body.style.background = "red";
}
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #window #parent #frames
ADD COMMENT
Topic
Name
7+6 =