JavaScript Events Common in Ajax
JavaScript Events Common in Ajax
Event Occurs When . . .
- onabort — Occurs when the user aborts an action
- onblur – Occurs when an element loses the input focus
- onchange –  Occurs when data in a control, such as a text field, changes
- onclick  – Occurs when the user clicks an element
- ondblclick  – Occurs when the user double-clicks an element
- ondragdrop  – Occurs when the user drags and drops an element
- onerror  – Occurs when there’s been a JavaScript error
- onfocus  – Occurs when an element gets the focus
- onkeydown  – Occurs when the user presses down on a key
- onkeypress  – Occurs when the user presses a key
- onkeyup –  Occurs when the user releases a key
- onload  – Occurs when the page loads
- onmousedown –  Occurs when the user presses down a mouse button
- onmousemove  – Occurs when the user moves the mouse
- onmouseout  – Occurs when the user moves the cursor away from an element
- onmouseover  – Occurs when the user moves the cursor over an element
- onmouseup  – Occurs when the user releases a mouse button
- onreset –  Occurs when the user clicks a Reset button
- onresize  – Occurs when the user resizes an element or page
- onsubmit  – Occurs when the user clicks a Submit button
- onunload  – Occurs when the browser unloads a page and moves to another page