Frames Part 2 |
||
list of tutorials | next tutorial [Forms] |
In this part of the tutorial we'll create the files to go in the frameset we made in Part 1.
We'll need three files - a menu with a couple of links in the top of the screen, a main page to display in the rest of the screen and a file to link to so that we can experience defining targets.
framemenu.htm | framepage1.htm | framepage2.htm |
<HTML> <HEAD> <TITLE>Frames Menu</TITLE> </HEAD> <BODY> <div align="center"> Text link to <A HREF="framepage1.htm" TARGET="PAGE">Page 1</A> - Text link to <A HREF="framepage2.htm" TARGET="PAGE">Page 2</A></div> </BODY> </HTML> |
<HTML> <HEAD> <TITLE>Frames Page One</TITLE> </HEAD> <BODY> <H1>Page One</H1> This is Page One in our frameset exercise. This page should change when the links are clicked in the menu at the top of the page but the menu should remain constant. </BODY> </HTML> |
<HTML> <HEAD> <TITLE>Frames Page Two</TITLE> </HEAD> <BODY> <H1>Page Two</H1> This is Page Two in our frameset exercise and, hopefully, it should all work brilliantly. This frame changes when the links are clicked in the menu at the top of the page but the menu remains constant. </BODY> </HTML> |
My advice would be to leave frames alone unless they are absolutely necessary - and to ask yourself that very question before you take the plunge! :)
To find out more about the FRAMESET and FRAME tag attributes check out my TAG LIST Page