Frames


Example:

Two Frames

Frames File: <HTML> <HEAD> <TITLE>Dual Frame Page</TITLE> </HEAD> <frameset rows=*,*> <frame src=x.htm name=top> <frame src=y.htm name=bottom> </frameset> </HTML> HTML File for top frame: <HTML> <HEAD> <TITLE>Top Frame</TITLE> </HEAD> <BODY> <H1>Frame X</H1> </BODY> </HTML> HTML File for bottom frame: <HTML> <HEAD> <TITLE>Bottom Frame</TITLE> </HEAD> <BODY> <H1>Frame Y</H1> </BODY> </HTML>

Three Frames

<HTML> <HEAD> <TITLE>Dual Frame Page</TITLE> </HEAD> <frameset rows=*,*> <frame src=x.htm name=top> <frameset cols=*,*> <frame src=y.htm name=bottom_left> <frame src=z.htm name=bottom_right> </frameset> </frameset> </HTML>

Two Frames with Targeted Bottom Frame

Frame Code

<HTML> <HEAD> <TITLE>Dual Frame Page</TITLE> </HEAD> <frameset rows=*,*> <frame src=x.htm name=top_frame> <frame src=y.htm name=bottom_frame> </frameset> </HTML>

HTML Code for x.htm

<HTML> <HEAD> <TITLE>X.htm</TITLE> </HEAD> <BODY> <H1>Frame X</H1> Click to view the <A HREF="http://marvel.loc.gov" target=bottom_frame>Library of Congress'</A> home page </BODY> </HTML>