This tutorial will teach you how to make frames that can make updating your pages easier.
Here's a good example, paste this into a blank
NotePad or
SimpleText document, save it as whatever.html, then view it.
<frameset cols="20%,*" framespacing="0" frameborder="0">
<frame src="name.html" name="side" frameborder="0" scrolling="auto" noresize>
<frame src="diffname.html" name="main" frameborder="0" scrolling="auto" noresize>
</frameset>
To get web pages to load into the two frames, all you have to do is make the 2 separate HTML documents, then just change the frame src="..." to whatever it is you named the HTML files.
Let's Say you were to use the Frameset above and you wanted a
navigation bar (left frame) and a main page (right frame)...
How would you get the links clicked on the the navbar to load into the main page?
This is where the
target attribute comes in handy.
Let's say you name the navbar frame
'nav' and the main frame
'main'... all you need to do is add
target="main" to the links in the navbar to make them load into the main frame...
Note: you do not have to use target="..." if you want a link in a frame to load into that frame...
Sorry, you must be a registered member to post comments.
If you would like to register, you can do so
here.
If you already have an account, please
login.