JavaScript Form Handling
- We can not handle HTTP POST data from JavaScript, but we can still access the data while it is in the HTML form.
- To handle forms with JavaScript we may attach the preventDefault method to the submit event of the form, this allows us to handle the form data from our script instead.