After a normal form post, the browser shows whatever the receiving address answers with. To land on a thank-you page, the receiver has to answer with a redirect to it, or your own JavaScript has to send the form and then change the page.
Which one you use depends on who receives the form: your own server, a form backend, or a script in the page.
Option 1: your own server redirects
If your own code receives the form, answer the POST with a 303 See Other status and a Location header holding the thank-you address. The browser then loads that page with a GET request. This also stops the form being sent again if the visitor refreshes.
Option 2: a hidden redirect field on a form backend
Most form backends answer a plain form post with a redirect and let you choose the destination. In FormTango a plain post goes to a FormTango thank-you page by default. On paid plans, a hidden field named _redirect sends the visitor to your own page:
<input type="hidden" name="_redirect" value="https://yoursite.com/thanks">
Use a complete address that starts with https://. Field names that start with an underscore are instructions to FormTango, so _redirect is not stored with the submission.
Option 3: send with fetch, then redirect in JavaScript
If you send the form with fetch and ask for JSON, no redirect happens. Your code decides what comes next, so you can change the page yourself once the response is good. This works on any plan because the page does the redirect.
form.addEventListener('submit', async (event) => {
event.preventDefault();
const response = await fetch(form.action, { method: 'POST', headers: { Accept: 'application/json' }, body: new FormData(form) });
if (response.ok) window.location.href = '/thanks';
});
Show an error message when the response is not ok, so a failed send is not silent. The full pattern is in how to submit a form with fetch.
Make the thank-you page useful
- Say plainly that the message was received and when to expect an answer.
- Link back to the home page or to something worth reading next.
- Keep it out of search results with a noindex meta tag if you count visits to it as conversions.
If the redirect does not happen
- The form was sent with JavaScript that asked for JSON. A JSON request gets a JSON answer, never a redirect.
- The address in _redirect is relative or misspelled. Use the full https:// address.
- You are on the free plan, where visitors see the FormTango thank-you page. A custom redirect needs a paid plan, or use option 3.
- See My thank-you page redirect does not happen for more.
Common questions
- How do I redirect after a form submit in plain HTML?
- HTML alone cannot do it. The address that receives the form has to answer with a redirect. With a form backend you set the destination, in FormTango with a hidden _redirect field on paid plans.
- Why use a 303 redirect after a form post?
- A 303 tells the browser to load the next page with GET. Refreshing the thank-you page then reloads only that page and does not send the form a second time.
- Can I show a message without leaving the page?
- Yes. Send the form with fetch and show your own message. See the [submit a form without redirecting guide](/guides/submit-form-without-redirect).
Written by the FormTango team. Facts about other services were read from their own pages on November 22, 2026. Spotted something out of date? Tell us and we will fix it.