Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XHTML Frames

Status
Not open for further replies.

albusperciva

Technical User
Sep 12, 2007
8
US
Hello,

I have one of my many web pages in a frame. This page has three frames: one for the header, one for navigation, and one for the main content of the page.

When I click on a link in the navigation frame it opens the other web page in the right frame. That's not what I want to happen. I want to be able to click the link in the navigation frame and go to the other web page without frames. Is this possible?

I'm just learning frames, so maybe my head is a little clouded at the moment. If it's possible, maybe just point me in the right direction, so I can try to figure it out.

If this isn't making sense, please let me know and I'll try to elaborate. Thank you for your help and information!

My navbar code looks like this:

<ul class="navbar">
<li><a href="index.html">Home Page</a></li>
<li><a href="sitemap.html">Site Map</a></li>
<li><a href="aboutrunescape.html">About Runescape</a></li>
<li><a href="mycharacter.html">My Character</a></li>
<li><a href="aboutme.html">About Me</a></li>
<li><a href="resume.html">My Resume</a></li>
<li><a href="workscited.html">Works Cited</a></li>
<li><a href="feedback.html">Feedback</a></li>
</ul>

My frame code looks like this:

<frameset rows="8%,*">

<frame src="header.html" noresize="noresize" frameborder="0" scrolling="no"/>
<frameset cols="13%,87%">
<frame src="navbar.html" noresize="noresize" frameborder="0"/>
<frame src="feedbackframe.html" />
</frameset>

</frameset>
 
I'm not sure i follow? Why are you using frames if you don't want frames?
Anyway: you want your links to open in a new window, and not inside the frame?

Try giving the link a target of _blank.

Code:
<a href="sitemap.html" target="_blank">Site Map</a>



----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
I'm just learning frames
You are going to run into a lot of problems by using frames. Have a look into better alternatives for creating the functionality you are after, such as server side includes (SSI) or a server side language such as ASP.NET, ASP, PHP, JSP etc...


------------------------------------------------------------

Mark,
[URL unfurl="true"]http://aspnetlibrary.com[/url]
[URL unfurl="true"]http://mdssolutions.co.uk[/url] - Delivering professional ASP.NET solutions
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top