Link in thank you page opens new page even it is not set to?

  • ozgurerdogan
    Asked on March 10, 2015 at 12:26 PM

    I manually added a link in to thank you page but it opens in new window even I set it to open same page. Can I stop that and open in same windows? Or this is because form is in iframe.

  • Charlie
    Replied on March 10, 2015 at 1:56 PM

    Hi,

    You can try editing that action in the hyperlink option in your "Thank You" message option.

    Link in thank you page opens new page even it is not set to? Image 1 Screenshot 20

    That should open the link to the same window where the form is. Although, I see that you are using a script in the hyperlink rather than a direct link? I would recommend that you use a direct link instead. 

    Kind regards.

  • ozgurerdogan
    Replied on March 10, 2015 at 2:51 PM

    You solution still forced link open in new tab. So my javascript could make it work as I wanted. Thanks.

  • Charlie
    Replied on March 10, 2015 at 4:24 PM

    Hi,

    May I know how your process flow works? Is it like this:

    1. Form is embedded on website.

    2. If user fills out the form and click the link to the thank you message then he'll be transferred to this page: http://yesilbeyaz.web.tr/4hc/guncel/Fiyat-Hesaplama.asp?url=? Is that correct?

    May I know what is the function of your javascript? If you are looking for a redirection, you can try adding the link directly and adding an attribute "target=_self" to force the redirection to the same page.

    Link in thank you page opens new page even it is not set to? Image 1 Screenshot 20

     

    Or you could also change the value of your Javascript from:

    javascriptDISABLED:q=(document.location.href);void(open('http://yesilbeyaz.web.tr/4hc/guncel/Fiyat-Hesaplama.asp?url='+escape(q),'_parent','resizable,location,menubar,toolbar,scrollbars,status'));

    To:

    javascriptDISABLED:q=(document.location.href);void(open('http://yesilbeyaz.web.tr/4hc/guncel/Fiyat-Hesaplama.asp?url='+escape(q),'_self','resizable,location,menubar,toolbar,scrollbars,status'));

    Let us know if this works.

    Thank you.