Event
Onclick
Ondblclick
- when element is double-clicked.
Onfocus
- when an element gets focus such as button, input, textarea etc.
Onblur
- when form loses the focus from an element.
Onsubmit
Onkeydown
- when key is being pressed.
Onkeypress
- when user presses the key.
Onkeyup
Onload
- when document, object or frameset is loaded.
Onunload
- when body or frameset is unloaded.
- when document is scrolled.
Onresize
- when document is resized.
Onreset
Onmouseover
- when mouse is moved over an element.
Onmouseout
- when mouse is moved out from an element (after moved over).
Onmousedown
- when mouse button is pressed over an element.
Onmouseup
- when mouse is released from an element (after mouse is pressed).