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

  • Profile Image
    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.

  • Profile Image
    Charlie
    Answered on March 10, 2015 at 01:56 PM

    Hi,

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

    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.

  • Profile Image
    ozgurerdogan
    Answered on March 10, 2015 at 02:51 PM

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

  • Profile Image
    Charlie
    Answered on March 10, 2015 at 04: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.

     

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

    javascript: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:

    javascript: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.