Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How do ensure that the redirect doesn happen until after the form data has been posted?

Data ensure form posted redirect
0
Posted

How do ensure that the redirect doesn happen until after the form data has been posted?

0

You can trigger the redirect from the frame’s onload handler. Depending on how your code is written, this onload handler may get called twice — once when the page initially loads and once when the form is submitted. If this is the case, you’ll have to make sure that you change document.location on the second time only.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123