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 2 of 2
  1. #1
    New to the CF scene
    Join Date
    May 2007
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    iframe: How to display a link in anohter window?

    Hey

    I have a iframe with links and when i click the links in the iframe i want the link to open in the headpage where the iframe code is placed.

    Here is my exampel:

    http://www.sifnet.dk/test_pl2.php?sp...1&season=2006#

    as you can see under Øverige spillere to the right, i have put in an iframe, but when i click one of the players, the link opens in the iframe. I want it to open in the headpage, as explain before.

    Is this possible?

  • #2
    Senior Coder
    Join Date
    Aug 2002
    Location
    UK
    Posts
    2,789
    Thanks
    2
    Thanked 14 Times in 14 Posts
    Try the link like this

    Code:
    <a href="yourpage.htm" onclick="parent.location.href=this.href ; return false">Page.htm</a>
    The silent one.

    The most dangerous thing in the world is an idea.
    The most dangerous person in the world is the one with an idea.


  •  

    Posting Permissions

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