If you click submit, without filling out the text field, an alert message will occur.
Note: The oninvalid event is not supported in Safari.