After the onsubmit event has fired and the form has been submitted (via an action="mailto:yournamehere@somebox.com") , is there a way to then clear the form, close the window or what? Is there a post submit that I can hook into via JavaScript. This must be a client side only solution.
Javascript – How to clear a plain HTML form after onsubmit
htmljavascript
Related Topic
- Javascript – How to get a timestamp in JavaScript
- Javascript – How to dynamically change a web page’s title
- Html – How to overcome the HTML form nesting limitation
- Javascript – How to make JavaScript execute after page load
- Javascript – How to loop through a plain JavaScript object with the objects as members
- Html – How to create an HTML button that acts like a link
- Javascript – How to decide when to use Node.js
- Javascript – jQuery checkbox checked state changed event
Best Answer
A quick and easy solution: