target _parent is only working en Firefox. Why it is not working on Google Chrome or Internet Explorer?

  • miguelben
    Asked on March 22, 2016 at 4:06 PM
    The image option only seems to work on firefox. I tried it on Chrome and iExplorer and it opens a new tab.
  • Kevin Support Team Lead
    Replied on March 22, 2016 at 4:09 PM

    I tested the form with the workaround provided above and seems to be working fine on the browsers that you say. 

    Firefox: 

    target  parent is only working en Firefox Screenshot 40

    Google Chrome: 

    target  parent is only working en Firefox Screenshot 51

    Internet Explorer: 

    target  parent is only working en Firefox Screenshot 62

    It could be that the attribute target is being overwritten for other property, but we need to have the link to your form, so we can test and inspect why the links are not working on your form. 

     

     

  • miguelben
    Replied on March 23, 2016 at 3:37 PM

    Hi, This is the link to my form:

    http://www.holaspanishcentre.com/tablet-temp.html

     

    If you click on the jotform logo, the link's target is set as _parent, but it opens in a new tab and all browsers.

  • Kevin Support Team Lead
    Replied on March 23, 2016 at 4:08 PM

    I checked your website and was able to see the issue that you are describing, when I checked the console I noticed this error: 

    target  parent is only working en Firefox Screenshot 40

    This is because you are trying to open the links using a different domain within iFrames, here is your currently code: 

    target  parent is only working en Firefox Screenshot 51

    As you see you have different URLs where you are trying to access to other links, for example, this is the main URL http://www.holaspanishcentre.com/tablet-temp.html, then you have embedded an iFrame with this URL http://www.holaspanishcentre.com/temp/1.html, inside that iFrame you have embedded the JotForms, then not only Google Chrome take this as suspicious, all the we browsers have the same security this is why it does not work on any browser. 

    As far as I know there is not a way to resolve this problem since this is security that web browsers implement to avoid attacks, here is a link where it is explained as well: http://www.axure.com/c/forum/advanced-prototyping/10479-link-within-iframe-navigate-page-prototype.html

    Now, I copied the link to the first iFrame, this is the link: http://www.holaspanishcentre.com/temp/1.html

    When I tested I noted that the links are opened in the same tab, see here the result: 

    target  parent is only working en Firefox Screenshot 62

    In order to avoid the web browsers blocking the target _parent you should embed the JotForms directly on your website: http://www.holaspanishcentre.com/tablet-temp.html

    I mean, copy the JotForm's code embedded here: http://www.holaspanishcentre.com/temp/1.html, and paste them here: http://www.holaspanishcentre.com/tablet-temp.html directly, this will allow the target _parent attribute to work properly. 

    Hope this will help you.