skip to contentstylized crane logoWhite Crane Education

HTML Control Events

onblur occurs when the control loses the focus
onchange occurs when the control loses the focus and its value has changed
onfocus occurs when the control gets the focus
onreset occurs when the user resets a form (applies only to forms)
onselect occurs when the user selects the text in a control
onsubmit occurs when the user submits a form (applies only to forms)

Keyboard Events

onkeydown occurs when the user presses a key on the keyboard
onkeypress occurs when the user presses a key on the keyboard, the event fires continuously until the key is released
onkeyup occurs when the user releases a key on the keyboard

Mouse Events

onclick occurs when the user clicks on an object
ondblclick occurs when the user double-clicks on an object
onmousedown occurs when the user presses any mouse button
onmousemove occurs when the user moves the mouse
onmouseout occurs when the user moves the mouse outside the boundary of an object
onmouseover occurs when the user first moves the mouse into the boundary of an object
onmouseup occurs when the user releases any mouse button

Window Events

onload occurs after the window finishes loading
onresize occurs when the window is resized
onunload occurs when the window is closed