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