An event in JavaScript is a basic operation that responds to the user, and is an action that can be detected by JavaScript. Each element of a Web page can produce certain events that can trigger JavaScript functions.
JavaScript List of events (event properties-occurrence conditions):
onabort– the loading of a picture is terminated (only for )
onblur– when an element loses focus (the cursor moves away)
onchange– user changed the value of a field (for <input type= "text", <select>, <textarea>)
onclick– Mouse Click Object
ondblclick– mouse Double click Object
onerror– file or picture loading error (<IMG>, <object>, <style>)
onfocus– an element to get focus
onkeydown– keyboard One key is pressed
onkeypress-Keyboard One key is pressed or kept pressed
onkeyup– when the pressed key is released
onload– when a page or picture finishes loading
onmousedown– When a mouse button is pressed
OnMouseMove-Mouse Move
onmouseout– Mouse is removed from an element
onmouseover– the mouse to an element
onmouseup– mouse button is released
onreset– reset button is clicked
onresize– window or frame size changed
onselect– text is selected
onsubmit– Submit button is clicked
onunload– User Closes page
OnLoad and OnUnload
The onload and OnUnload events are triggered when the user enters or leaves the page.
The onload event is typically used to check the browser type and version of the visitor and to load the appropriate version of the Web page based on that information.
OnLoad and OnUnload events are also often used to set cookies when a user enters or leaves a page.
Onfocus, OnBlur and OnChange.
Onfocus, OnBlur and OnChange events are often used in conjunction with validation of form fields.
OnSubmit
OnSubmit events are often used to validate all field values before the form is submitted
OnMouseOver and onmouseout
OnMouseOver and onmouseout are often used to generate animated buttons.