This example uses the addEventListener() method to attach a "submit" event to a form element.
When you submit the form, a function is triggered which alerts some text.