JavaScript‎ > ‎

Events

onLoad and onUnload

The onLoad and onUnload events are triggered when the user enters or leaves the page.


onFocus, onBlur and onChange

The onFocus, onBlur and onChange events are often used in combination with validation of form fields.


onSubmit

The onSubmit event is used to validate ALL form fields before submitting it.


onMouseOver

The onmouseover event can be used to trigger a function when the user mouses over an HTML element.
Comments