|
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 left
& right.
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 |
|
|
|