Home › Forums › JavaScript › Submit form and stay on page › Reply To: Submit form and stay on page
October 9, 2014 at 5:10 pm
#185931
Participant
When you set up a <form>
with an action
you can set it to the URL you want (including the page you’re at). Now, the method
tells the browser if you want to append the form data to the URL (get
) or save it into a special variable (post
).
If you wanted to submit the form without a post-back, you’ll want to look into AJAX form submits. This does stuff in the background and starts a process in the background without leaving the page at all.
All that said, what are you doing with the data inputted in the form?