This page uses nested frames in seperate HTML document files. This HTML page contains a frameset with 2 frames, one on the left and one on the right. This frame, the one on the left, has the frame name frameset_2. Inside frameset_2 is another set of frames. This is the top frame in frameset_2 and it has the frame name control_frame.

JavaScript frame calls that do work:

Write to right_target using top.frames[1].document.writeln()
Write to right_target using parent.parent.right_target.document.writeln()
Write to right_target using parent.parent.parent.parent.right_target.document.writeln()

Write to bottom_target using top.frames[0].bottom_target.document.writeln()
Write to bottom_target using top.frames[0].frames[1].document.writeln()
Write to bottom_target using parent.frames[1].document.writeln()

Write to frameset_2 using top.frames[0].document.writeln()
Write to this frame using top.frameset_2.frames[0].document.writeln()


JavaScript frame calls that don't work:

Write using frameset_2.frames[0].document.writeln() Need '.top'
Write using top.frames[2].document.writeln() No such frame exists

The following are never possible because to work, they would have to link from within a frames page. Frames pages never have body tags or any other text that is viewable by the browser, and therefore could not display these links.
Write using frames[1].document.writeln()
Write using right_target.document.writeln()
Write using bottom_target.document.writeln()


Click here to see the FDT based on JavaScript frame numbering

Testing