Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 02-15-2013, 03:10 AM   PM User | #1
Tom Sparks
New Coder

 
Join Date: Feb 2013
Posts: 10
Thanks: 2
Thanked 0 Times in 0 Posts
Tom Sparks is an unknown quantity at this point
Frame target opening in same frame

Hi I am trying to open an html document in a target frame and every time I click the link it opens in the same frame, what am I doing wrong and how could I fix it?
Code:
<html>
<frameset cols="180, *">
<frame name="LeftFrame" src="index.htm">
<frame name="RightFrame" src="welcome.htm">
</html>
and this is an example of the link code in my index.htm
Code:
<li><a href="one.htm" target"RightFrame">one.htm</a></li>
	<li><a href="two.htm" target"RightFrame">two.htm</a></li>
	<li><a href="three.htm" target"RightFrame">three.htm</a></li>
I am trying to open in the RightFrame, do I have to change that code in the framset (first excerpt of code) document?
Cheers!
Tom Sparks
Tom Sparks is offline   Reply With Quote
Old 02-15-2013, 03:12 AM   PM User | #2
Tom Sparks
New Coder

 
Join Date: Feb 2013
Posts: 10
Thanks: 2
Thanked 0 Times in 0 Posts
Tom Sparks is an unknown quantity at this point
I have been looking into the problem and have seen a lot of <iframe> tags, however when I used those in replacement of my <frame> tags the page came up blank, I am using chrome so is it my html frameset document layout?
Just wondering
Tom Sparks
Tom Sparks is offline   Reply With Quote
Old 02-15-2013, 08:27 AM   PM User | #3
felgall
Master Coder

 
felgall's Avatar
 
Join Date: Sep 2005
Location: Sydney, Australia
Posts: 5,528
Thanks: 0
Thanked 503 Times in 494 Posts
felgall is a jewel in the roughfelgall is a jewel in the roughfelgall is a jewel in the rough
You left out the = between the long obsolete target attribute and the value you are trying to assign to it.
__________________
Stephen
Learn Modern JavaScript - http://javascriptexample.net/
Helping others to solve their computer problem at http://www.felgall.com/
felgall is offline   Reply With Quote
Old 02-15-2013, 12:55 PM   PM User | #4
Tom Sparks
New Coder

 
Join Date: Feb 2013
Posts: 10
Thanks: 2
Thanked 0 Times in 0 Posts
Tom Sparks is an unknown quantity at this point
Thank you very much I knew it was a simple solution but after working on it for an hour and just staring at it I was at wits end
Thank you!
Tom Sparks is offline   Reply With Quote
Old 02-15-2013, 01:18 PM   PM User | #5
VIPStephan
The fat guy next door


 
VIPStephan's Avatar
 
Join Date: Jan 2006
Location: Halle (Saale), Germany
Posts: 7,696
Thanks: 5
Thanked 875 Times in 850 Posts
VIPStephan is a jewel in the roughVIPStephan is a jewel in the roughVIPStephan is a jewel in the rough
Still, I and many others (I assume) would recommend you to look into alternatives to framesets at long sight.
__________________
Don’t click this link!
VIPStephan is offline   Reply With Quote
Reply

Bookmarks

Tags
frames target, href, html

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 06:33 AM.


Advertisement
Log in to turn off these ads.