Click to See Complete Forum and Search --> : I need some help.


Zandor 12
07-10-2003, 10:26 PM
I have a basic webpage, and a problem that would probably be very obvious if I knew code. My site has two frames- the right has content, and the left has navigation links. When someone clicks on a link though, the left frame stays there. Is there some sort of HTML or Javascript where you click on a link or button of some sort to close a window? Figures- I finally managed to make frames work, and then this comes up. :confused:

pyro
07-10-2003, 10:28 PM
Could you explain your problem better? I have no clue what it is that you need...

Zandor 12
07-11-2003, 10:57 PM
I never was very good at explanations. Maybe I show just show you the problem page instead. Go to www.angelfire.com/nd/zandorsden/index.html then go to the links section. If you click a link, it will load in the right frame, but the frame on the left will still be there. Is there any HTML or Javascript that can close the left frame, but not the entire window? Or is there another, easier way to do a navigation menu that won't scroll offscreen without having to resort to frames? I know I'm missing out on something obvious here.

micjohnson
07-11-2003, 11:14 PM
<CENTER>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
if (window != top) top.location.href = location.href;
// End -->
</SCRIPT>
</CENTER>

brendandonhue
07-11-2003, 11:21 PM
Add
TARGET="_parent
to each of the links.

brendandonhue
07-11-2003, 11:22 PM
Or if all links in that page need to open without frames, add the line
<BASE TARGET=_PARENT>
in the HEAD section