Results 1 to 7 of 7

Thread: iframe

  1. #1
    Join Date
    Jul 2008
    Posts
    8
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Question iframe

    Hi

    Is there a way to have a hyperlink within an iframe open in that window and not within the iframe. Sorry if this question is a bit simple.

    Cheers

  2. #2
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

  3. #3
    Join Date
    Jul 2008
    Posts
    8
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default

    This script still loads the content within the iframe? Is there a way to change the page outside the borders of the iframe?

    For example if an iframe had a hyperlink to google.com within it. I want it so that when that link is clicked, the entire page reloads showing just google.com

  4. #4
    Join Date
    Apr 2008
    Location
    So.Cal
    Posts
    3,643
    Thanks
    63
    Thanked 516 Times in 502 Posts
    Blog Entries
    5

    Default

    make your link like so:
    Code:
    <a href="http://www.google.com" target="_top">Google</a>

  5. The Following User Says Thank You to traq For This Useful Post:

    mstolton (07-04-2008)

  6. #5
    Join Date
    Jul 2008
    Posts
    8
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default

    Thanks your a legend!

  7. #6
    Join Date
    Jul 2008
    Posts
    8
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default

    Hi

    Can the code below, for the iframe itself be modified to allow all hyperlinks within it to open the page outside of the iframe's borders, rather than having to modify each individual hyperlink:

    <iframe src="http://www.google.com"
    width="600" height="600" marginwidth="0" marginheight="0"
    hspace="0" vspace="0" frameborder="0" scrolling=no>
    </iframe>

  8. #7
    Join Date
    Jun 2008
    Posts
    589
    Thanks
    13
    Thanked 54 Times in 54 Posts
    Blog Entries
    1

    Default

    No. It is impossible to do with Google. The only way to do that would be with any .html page that has a stylesheet attached with a { target:_top; } in a style tag.

    -magicyte

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
  •