Navigation
Poll
Would you be an active poster if Ron's Guide had a message board?


Total Votes: 62
Comments: 18 — View
Past pollsPoll idea?
Rate Ron's Guide
Rate our resource at Bigwebmaster.com
Frames
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...
Discuss Tutorial: Frames 10 Comments
Comment by Ron on Mar 16, 2004, 4:13 am
Please post questions or comments about this tutorial below. Smile
Comment by James on Jun 15, 2004, 4:26 pm
Was this website created using these frames?
If not, how did you get the 3 columns on the page?
Could you explain?

Thanks,
James
Comment by Ron on Nov 20, 2004, 7:02 am
James, sorry for the (extremely) late reply. I created this site using html <Laughingiv> tags and CSS to position them into three columns.
Comment by deedsofvalor on May 19, 2005, 11:27 pm
how do you make the edges curved like that?
Comment by deedsofvalor on May 19, 2005, 11:38 pm
I dont get how to put links into the nav bar either still Sad
Comment by Eiken on May 23, 2005, 2:53 am
I put target="..." but my links just open in new windows,whta's wrong with it?
Comment by phppwnzors on Jun 11, 2005, 12:15 pm
where do you put this to?
Comment by Jason on Jul 25, 2005, 2:09 pm
you cant just put target="..."
its even mentioned up there.you have to put the name of the frame you are wanting to open the link in
Comment by singkong on Sep 25, 2005, 6:09 pm
Grin Thx.. I'm looking 4 this Tips..!
Comment by khai on Oct 4, 2005, 11:40 am
it's abstruse!!! Angry

« Previous [ 1 ] Next »
Post a comment
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.