How to open iFrame external link in parent window

Discussion in 'HTML & Website Design' started by Talat Kashif, Apr 25, 2011.

  1. #1
    Hi everybody

    I am developing an affiliate site using HTML and having a problem while dealing with iFrame. I have embedded the form of affiliate site using iFrame, what I want is that if user click on submit button then the result page of that external site open in the parent window and I have tried all the possible "target" attributes but it is not working the page is still loading within the iFrame.

    Can anyone suggest me any possible solution?
     
    Talat Kashif, Apr 25, 2011 IP
  2. subdivisions

    subdivisions Well-Known Member

    Messages:
    1,021
    Likes Received:
    40
    Best Answers:
    1
    Trophy Points:
    145
    #2
    Does target='_top' not work? That should definitely do it.
     
    subdivisions, Apr 25, 2011 IP
  3. salmanshafiq

    salmanshafiq Well-Known Member

    Messages:
    260
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    128
    #3
    Please try target="_parent"
     
    salmanshafiq, Apr 25, 2011 IP
  4. Talat Kashif

    Talat Kashif Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    As I have mentioned in my query that I have tried all the possible target attributes but its not working.
     
    Talat Kashif, Apr 25, 2011 IP