Skip to content
Advertisement

How to close browser after form has been submitted?

I am trying to submit a form and then the browser has to close. But I cannot understand why it will not work. For some reason, it will close the window, but it does not submit the form.

JavaScript
JavaScript

Tried to submit the form with jQuery and then close the window

Advertisement

Answer

I see you are using jQuery, you can use ajax

JavaScript

then process your submitted form.

Advertisement