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

  • pierocan
    Asked on February 2, 2016 at 3:15 PM
  • Chriistian Jotform Support
    Replied on February 2, 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" target="_blank">

    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 onDISABLEDload="loaded()">

    Hello!

    </body>