Fire-House 58

Frames

control

f-1


JavaScript:
firehouse58.com  

 

Hard Reload
To See Menu

Frames

are collections of separate windows viewed within one browser window. Each frame (child) is a subordinate window of a frameset (parent). They inherit the frameset 's JavaScript's and are related to each other by the frameset (parent).

Each frame (child) displays its own document, or it's own version of the same document. The frameset has no documents to display, just frames (children). So the frameset is basically just a box that holds the frames.

Frames
navigation

 

<html>
<frameset rows="70%,30%">


This is the HTML declaration of a frameset, which splits the browser window into two horizontal rows.
<frame name="upper" src="childmain.htm">



The frame property name is used to identify each child frame. src defines the initial document.
N
O
T
E

For navigation: Do not use the name top or parent for any of the frames. JavaScript uses these names to identify the immediate and ultimate frameset in a browser window. Manipulate the visable page in a frame by adjusting its location property.

<frameset cols="75,25" >

<frame name="left" src="child.htm">
<frame name="right" src="switcher.htm">

</frameset>
</frameset>

</html>

This is the lower frameset. The two children are leftright. The browser sets all child frames in an array. Frames can be accessed by this array, or by name.
by array by name
parent.frames[0] parent.top
parent.frames[1] parent.left
parent.frames[2] parent.right

 


[back]   [home]   [next]