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 4 of 4

Thread: IFrame

  1. #1
    Regular Coder
    Join Date
    Jun 2002
    Location
    Lake Forest, CA
    Posts
    259
    Thanks
    0
    Thanked 0 Times in 0 Posts

    IFrame

    Hi, i have a search box in an iframe on my main page, and when you type in a keyword and press submit, its results are inside the iframe, how do i get them to not load in the frame?

  • #2
    Regular Coder
    Join Date
    May 2002
    Location
    Maine, USA
    Posts
    574
    Thanks
    0
    Thanked 0 Times in 0 Posts
    This should open the link you have in the iframe in the window containing the iframe:

    <a href="http://www.whatever.html" target="_parent">Open link in current window</a>

    To open the link in a new window:

    <a href="http://www.whatever.html" target="_blank">Open link in current window</a>

    Does this help you out?
    boxer_1
    CodingForums Moderator
    "How did a fool and his money get together in the first place?"

  • #3
    Regular Coder
    Join Date
    Jun 2002
    Location
    Lake Forest, CA
    Posts
    259
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Those didnt work, but i did figure it out.. Its target="_top"


  • #4
    Regular Coder
    Join Date
    May 2002
    Location
    Maine, USA
    Posts
    574
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Originally posted by The Wizzard
    Those didnt work, but i did figure it out.. Its target="_top"

    Hmm...well at least your dillema is solved . These are the target attributes as I've undestood them:

    _blank = targets a new blank window that is not named

    _self = targets the frame where the hyperlink is found

    _parent = targets the parent frameset of the frame where the hyperlink is found.
    Defualts to _self value if no parent document is found

    _top = targets full window before any frames are introduced.
    boxer_1
    CodingForums Moderator
    "How did a fool and his money get together in the first place?"


  •  

    Posting Permissions

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