SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Evangelist perpetual_dream's Avatar
    Join Date
    Nov 2005
    Location
    Jerusalem
    Posts
    542
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Open Iframe link in same window

    Hello,
    I have an iframe that contains adsense referal button
    The only problem I have is that when the referal button is clicked, the page tries to open up within the IFRAME, ideally I would like it to open up in the parent window.
    Tanzeelnet - Best arabic downloadsite
    Linux Hosting |Free Downloads |

  2. #2
    SitePoint Zealot ozwebfx's Avatar
    Join Date
    Dec 2004
    Location
    Melbourne, Australia
    Posts
    157
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Is the adsense referall button hosted by you or from an external site. If by you you simply use:

    Code:
    <a href="#" target="_parent"><img src="referall_button.gif" alt="referall button" width="156" height="59" border="0"></a>
    or:

    Code:
    <a href="#" target="_top"><img src="referall_button.gif" alt="referall button" width="156" height="59" border="0"></a>
    If from external site think of another method to include without the frams

  3. #3
    SitePoint Evangelist perpetual_dream's Avatar
    Join Date
    Nov 2005
    Location
    Jerusalem
    Posts
    542
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Adding
    Code:
    <head><base target="_top"></head>
    inside the iframe src page was good enough to solve it
    Tanzeelnet - Best arabic downloadsite
    Linux Hosting |Free Downloads |


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
  •