JavaScript Events Reference Cheat Sheet
This is part eleven of the JavaScript tutorial. If you missed the previous lessons, you may want to review them prior to viewing this JavaScript Event Reference Chart.
Below is a JavaScript Event reference chart. It will provide you with a “cheat sheet” to assist you in learning.
Once you understand how JavaScript works, you will be ready to begin writing your own JavaScript code. Although it may be confusing at first, the more you practice writing JavaScript code, the better you will become.
JavaScript Events Reference
Attribute |
Description |
onabort |
Refers to the loading of an image that is interrupted. |
onblur |
Refers to an element losing the focus of the web browser. |
onchange |
Refers to a content is change, usually inside a text input box. |
onclick |
Refers to when an object is clicked. |
ondblclick |
Refers to when an object is double clicked. |
onerror |
Refers to when an error occurs. |
onfocus |
Refers to when an element is given focus. |
onkeydown |
Refers to when a keyboard key is pressed down. |
onkeypress |
Refers to when a keyboard key is pressed and/or held down. |
onkeyup |
Refers to when a keyboard key is released. |
onload |
Refers to when a web page or image loads. |
onmousedown |
Refers to when the mouse button is pressed down. |
onmousemove |
Refers to when the mouse is moved. |
onmouseout |
Refers to when the mouse is moved away from an element. |
onmouseover |
Refers to when the mouse moves over an element. |
onmouseup |
Refers to when the mouse button is released. |
onreset |
Refers to when a reset button is clicked. |
onresize |
Refers to when a window is resized. |
onselect |
Refers to when an element is selected. |
onsubmit |
Refers to when a submit button is clicked. |
onunload |
Refers to when a page is unloaded either by being closed or a link is clicked. |
Using a JavaScript code cheat sheet for your events will not only save you time, but will also assist you in learning JavaScript.
This concludes the JavaScript Events Reference Chart. In the next section, you will find a JavaScript Functions Reference Chart.