This guide shows a sample code that you can use if you want your form to redirect to another website or back to the form after submission with a countdown timer.
Here’s how to set it up:
- Paste the following code in your text editor.
<div style="text-align:center;">
<h1>Thank you!</h1>
<p>Your submission has been received.</p>
<p>This page will redirect in <span id="timer"></span>s.</p>
</div>
<script type="text/javascript">
var count = 7; // The delay in seconds before redirecting.
var redirect = "https://www.jotform.com"; // The redirection's landing page.
function countDown() {
if(count >= 0){
document.getElementById("timer").innerHTML = count--;
setTimeout("countDown()", 1000);
}else{
window.location.href = redirect;
}
}
countDown();
</script>
- Change the values in red to your preferences.
- Save it as an HTML file (e.g., thankyou.html) and upload it to your server.
- Get the link to your HTML file and set it as your form’s Thank You page.

To learn more, see Redirecting Users to a Different Page. Here’s a demo form with the setup above applied that you can try out.
Send Comment:
37 Comments:
Thanks!
How can I make special Link with the Unbounce thank you page
hello
wow
My form is on an Iframe, after the counter redirects to a new page, how can I redirect to the form insithe the iframe?
welcome
Thank you page!
I had tried a bunch but not luck until I got to this site. I just wish that it will have some kind of validation code to it, because for emails are required to do this. Thanks for the script!
I cut and pasted your sample code into the thank you HTML box. When I executed the form all I got was the thank you text,. No redirect, just the balance of the HTML code,
Sorry -- this makes very little sense to me -- because I don't have to do any code when working in Muse and don't work with any text editor, I am not sure how this gets accomplished. It seems like it should all happen on the jot form page. I may have to think up my own work-around
We are having a Thanks you page designed and need to make some changes to the layout, I tried this option but the lead filled is not leading to my mail id
when im in notepad, how do i save it as an html file?
Pastie Code is NOT valid and it's in spanish...
hullo there
hey
good
thanks
Hello Jotform,
hoping you can help me here... is there any way we can have it come up with the thank you message (that looks nice, not just plain text) and then it auto -redirects to our webpage?
thanks
Annie.
I'm trying to do this on a Conditional Thank You page, in other words, one where the user is diverted based on a condition on the page, and every time I try to save the Javascript, it disappears. Is this no longer possible?
my webpage will not redirect, i thouhght I did it right..:( dev.carolinasuccessteam.com the form in the middle of the page...THANKS!
Survey responses are submitted when a respondent clicks the Done button on the last page of your survey—respondents don t need to click the Done button on the page with your Custom Thank You to submit their responses.
ok
Is it possible to include the name/value pairs in the same fashion as when prepopulating a form for input?
sUPER
Very nice site!
Very nice site! cheap goods
so good
Thanks for the Useful Tip
it is very useful
detail of job formmmmmmmmmmmm
Aytekin صهريج هو مؤسس Jotform . وهو يقود حاليا فريق التطوير JotForm. يحب أن يسمع من المستخدمين Jotform. لا تتردد في اطلاق النار له رسالة بالبريد الالكتروني في aytekin في jotform.com.
Habían muy buenas propuestas. Felicitaciones a Todos los participantes y a los ganadores Mil Bendiciones. Estas Aplicaciones serán muy utiles para toda la Comunidad. Gracias a Todos.
Congratulations! Very excited! I have my new Jotform app on my android. Makes business a whole lot easier.
well done and congrats
ملوك الريف
Wow, awesome!
Hi,
I tried to edit the HTML with your editor so that I could redirect anyone who submits a form back to my page however I am not sure what I am doing wrong, I follow your instructions but when I have done a few test submits it doesnt seem to work.
I notice when I go into the text editor, after changing it, the HTML looks the same, after saving it, should it look changed..?
Regards
Jack