What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.


  • Profile Image

    How do I get my Thank You page open in a new window. (Target _blank) and closes after 5 seconds

    Asked by pierocan on February 02, 2016 at 03:15 PM
    new window target and open
  • Profile Image
    JotForm Support

    Answered by Chriistian on February 02, 2016 at 10:34 PM

     

    You can do this by using the full source code of your form and then look for the form tag to add the target=_blank code. The form tag would look like this:

    <form action="http://submit.jotform.com/submit/ID/" method="post" name="form_ID" id="50038869692972" accept-charset="utf-8" >

    Please note that the method above works only if you have the form embedded on a website and also that you'll need to update the code in your site every time you make changes in your form.

    Then add this script on the thank you page to close it.

    <head>

    <script>

    function loaded()

    {

        window.setTimeout(CloseMe, 500);

    }

     

    function CloseMe() 

    {

        window.close();

    }

    </script>

    </head>

    <body onLoad="loaded()">

    Hello!

    </body>