Use the HTML DOM to assign an "onsubmit" event to a form element.
When you submit the form, a function is triggered which alerts some text.