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 2013
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    iframe, opening a link in the parent frame

    Hello,

    i hope someone can help me, iv been making this search engine for abit now and it works as i wanted it to but if you open a link in the iframe it brings up the new page in the iframe.
    Iv read alot of forums for answers and everyone says target= "_parent" is the answer but i have no idea where to put it..

    http://pastebin.com/KLbx4Exx


    The main Line of code that i think needs to be changed is

    output.document.write(desc[itemp].bold() +"<br>" + links[itemp].link(links[itemp])+ "<br>");

    Any help with this would be a huge help

    Thanks

    Stephen

  • #2
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Posts
    25,133
    Thanks
    75
    Thanked 4,338 Times in 4,304 Posts
    WOW! Do you realize how *ANCIENT* that code is! 1997!!!!

    It's amazing that it still works in modern browsers.

    Anyway, I don't see any place in that code that mentions an <iframe>. (No wonder! <iframe> didn't exist in 1997.)

    You would be a lot better off showing us your *LIVE* web page--give us the URL to it--so we could understand what <iframe> you are talking about.
    An optimist sees the glass as half full.
    A pessimist sees the glass as half empty.
    A realist drinks it no matter how much there is.


  •  

    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
    •