Events
Events are actions that can be detected by JavaScript.
Every element on a web page has certain events which can trigger a JavaScript event. Events are defined in the HTML tags.
onLoad and onUnload Events
The onLoad and onUnload events are triggered when the user enters or leaves the page.
onFocus and onBlur
The onFocus event is triggered when the user sets focus to a form field. OnBlur is triggered when the focus changes to a different form field.
onChange
The onChange event is triggered when the content of a field changes.
onSubmit
The onSubmit event is triggered when form is about to be submitted.
onMouseOver and onMouseOut
The onMouseOver event is triggered when the mouse cursor is located over a form field. OnMouseOut is triggered when the mouse cursor leaves the form field.