"An event is an unexpected external occurrence".
Most JavaScript applications perform actions as a response to the event. An event is a signal from the browser that something has happened. In HTML, you can attach event to any specific HTML DOM element and implement any action that you want to perform when event triggers. Learn more about Javascript events, please visit JavaScript tutorial.
The below table contains document events list which are supported by HTML version.
Event Name | Event Description |
---|---|
onload | This event will encounter when page loads. |
onunload | This event will encounter when page unloads. |
The below table contains form events list which are supported by HTML version.
Event Name | Event Description |
---|---|
onblur | This event will encounter when form control loses focus. |
onfocus | This event will encounter when form control gets focus. |
onreset | This event will encounter when user reset form. |
onsubmit | This event will encounter when user submited form. |
The below table contains keyboard events list which are supported by HTML version.
Event Name | Event Description |
---|---|
onkeydown | This event will encounter user pressed key. |
onkeypress | This event will encounter when user pressed key and release. |
onkeyup | This event will encounter when user release pressed key. |
The below table contains mouse events list which are supported by HTML version.
Event Name | Event Description |
---|---|
onclick | This event will encounter when mouse click. |
ondblclick | This event will encounter when mouse double click. |
onmousedown | This event will encounter when mouse button is pressed and hold. |
onmousemove | This event will encounter when mouse moves over html document. |
onmouseout | This event will encounter when mouse came out from specific html element. |
onmouseover | This event will encounter when mouse comes over to specific html element. |
onmouseup | This event will encounter when mouse button is released. |
The below table contains media events list which are supported by HTML version.
Event Name | Event Description |
---|---|
onabort | This event will encounter when loading of a resource(image, file or object) has been aborted. |