View Full Version : a question about linking - where all the information appears in one frame

11-10-2002, 02:05 PM
as topic..

if there are a bunch of links (ie. me / you / her...) and you want to keep all the information cleanly in one frame... how do you do it? one frame as in.. one table.. .. you click on one link and all the info would appear in that certain frame.. if you click on another link... all the info from THAT link would also appear in that certain frame...

um.. i hope that's clear enough.


11-10-2002, 02:13 PM
it's called an IFrame. it's only available in newer browsers. (IE4+, NS6+, Opera 6.05 etc. ) you create your IFrame where you want it to be, like so:

<IFrame Src="default.htm" Name="billy"></IFrame>

where default.htm is the page that you want to show, before any links have been clicked. note that i've included Name="billy". this is because we need some way, to tell the links that we want them to open inside this IFrame. we do that, like this:

<A Href="thePage.htm" Target="billy">click click</A>

it looks just like a normal link, except for that Target="billy" bit. See the connection? Where do i want this to open; i want it to open in billy.

also, i'm gonna move this thread over to the HTML & CSS forum, since it really doesn't have anything to do with javascript.