This example demonstrates how to assign an "onsubmit" event to a form element.
When you submit the form, a function is triggered which alerts some text.