Results 1 to 3 of 3

Thread: Linking out of an iframe? Help can it be done?

  1. #1
    Join Date
    Aug 2006
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Linking out of an iframe? Help can it be done?

    Hi Please can somebody help I have been asked to make a site for someone and I wanted to use an iframe at the top of the page with the menu in and a scrolling ticker so that I can just change the iframe source file when the scroller needs changeing or the links in the menu etc. but my problem is that when i click the links they either open in the iframe or in a new window and i need it to open on the main page ican't work out if i can give the main windo a name to give the link a target or if somthing else is needed to get this effect.

    I've scowerd the net and cant find anything telling me how to do this so I hope some highly inteligent person will come along and save the day!!
    PPPLLLEEEAAASSSEEE!!!

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    This will open in the top page from inside an iframe but, if the new page doesn't have a similar iframe, the iframe will be gone.

    HTML Code:
    <a href="some.htm" target="_top">Link Text</a>
    That's just the way iframes work, they are a little different than regular frames.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Aug 2006
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks for that if you knew the amout of things I tried to get it to do that!!!
    I will come and ask you again if thats ok!

Bookmarks

Posting Permissions

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