Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New Coder
    Join Date
    Feb 2013
    Posts
    10
    Thanks
    2
    Thanked 0 Times in 0 Posts

    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

  • #2
    New Coder
    Join Date
    Feb 2013
    Posts
    10
    Thanks
    2
    Thanked 0 Times in 0 Posts
    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

  • #3
    Master Coder felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Posts
    6,592
    Thanks
    0
    Thanked 645 Times in 635 Posts
    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/

    Don't forget to start your JavaScript code with "use strict"; which makes it easier to find errors in your code.

  • #4
    New Coder
    Join Date
    Feb 2013
    Posts
    10
    Thanks
    2
    Thanked 0 Times in 0 Posts
    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!

  • #5
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,607
    Thanks
    6
    Thanked 997 Times in 970 Posts
    Still, I and many others (I assume) would recommend you to look into alternatives to framesets at long sight.


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •