Click to See Complete Forum and Search --> : Pages in a Frame


Sleepyhead87
11-26-2004, 05:07 PM
My problem is when I try to make a nav bar with frames
<HTML><HEAD><TITLE>Nav Bar</TITLE>
</HEAD>
<BODY bgcolor="Black" text="Red" link="Red" vlink="Red" alink="" >

<A HREF="http://www.blahblah.com/Homepage.html">Homepage</A><BR><A HREF="http://www.blahblah.com/News.html">News</A>
</BODY></HTML>
I try to click on the "nav bar" but instead of the page being on the main window it is on the "nav bar."

Help?

soccer362001
11-26-2004, 05:40 PM
Your first choice is to get rid of the frames which is recommended. The second choice is to use target="nameofframe". Your third choice is to use javascript.

Daniel T
11-26-2004, 05:41 PM
You need to specify a target for the link. If a target is not specified, it will open in the same frame the link is in. First of all, in the <frame> tag of the "main frame", put this:<frame name="main" ...
Then, in your anchor, you specify "main" as the target frame in which to open the link:<a href="http://www.blahblah.com/Homepage.html" target="main">

Edit
Darn soccer :mad:

:D

Sleepyhead87
11-26-2004, 09:16 PM
Thanks I get it now .Big help guys . Thanks again.