I don't want to redirect or refresh the page after form is submitted

I am not using any framework or platform in my site just pure html css and js, and I want to prevent my site from redirecting after submitting form. I don’t want any success or thank you page. Instead I just want an alert or popup thank you on same page without refreshing or redirecting. Is it possible?

Hi @aakashdhakal

Yes, this is possible.

Check out the Submit HTML forms with AJAX documentation for example code on how to accomplish this.