Event Object
The event object represents the state of the incident, such as the element in which the event occurred, the state of the keyboard key, the position of the mouse, and the state of the mouse button.
Events are often used in conjunction with functions, and functions are not executed until the event occurs!
Onabort |
The loading of the image is interrupted. |
Onblur |
Element loses focus. |
OnChange |
The contents of the domain are changed. |
OnClick |
The event handle that is invoked when the user taps an object. |
OnDblClick |
The event handle that is invoked when the user double-clicks an object. |
OnError |
An error occurred while loading the document or image. |
onfocus |
Element gets the focus. |
OnKeyDown |
One of the keyboard keys is pressed. |
onkeypress |
One of the keyboard keys is pressed and released. |
OnKeyUp |
A keyboard key is released. |
OnLoad |
A page or an image to finish loading. |
OnMouseDown |
The mouse button is pressed. |
OnMouseMove |
The mouse is moved. |
onmouseout |
The mouse moves away from an element. |
onmouseover |
Move the mouse over an element. |
OnMouseUp |
The mouse button is loosened. |
OnReset |
The reset button is clicked. |
OnResize |
The window or frame is resized. |
Onselect |
Text is selected. |
OnSubmit |
Confirm that the button is clicked. |
OnUnload |
The user exits the page. |
HTML Event Object