Common events without return values
Attribute |
Description |
Onabort |
Image loading is interrupted. |
Onblur |
Element loses focus. |
Onchange |
The domain content is changed. |
Onclick |
Event handle called when a user clicks an object. |
Ondblclick |
The event handle that is called when you double-click an object. |
Onerror |
An error occurred while loading the document or image. |
Onfocus |
Element to obtain the focus. |
Onkeydown |
A keyboard button is pressed. |
Onkeypress |
A keyboard button is pressed and released. |
Onkeyup |
A keyboard button is released. |
Onload |
A page or image is loaded. |
Onmousedown |
The mouse button is pressed. |
Onmousemove |
The mouse is moved. |
Onmouseout |
Move the mouse away from an element. |
Onmouseover |
Move the cursor over an element. |
Onmouseup |
The mouse button is released. |
Onreset |
The reset button is clicked. |
Onresize |
The window or frame is adjusted again. |
Onselect |
The text is selected. |
Onsubmit |
The confirmation button is clicked. |
Onunload |
The user exits the page. |
Returns the mouse or keyboard attributes.
Attribute |
Description |
AltKey |
Returns whether or not "ALT" is pressed when the event is triggered. |
Button |
Returns the mouse button that is clicked when an event is triggered. |
ClientX |
Returns the horizontal coordinates of the mouse pointer when an event is triggered. |
ClientY |
Returns the vertical coordinates of the mouse pointer when an event is triggered. |
CtrlKey |
Returns whether the "CTRL" Key is pressed when the event is triggered. |
MetaKey |
Returns whether the "meta" Key is pressed when the event is triggered. |
RelatedTarget |
Return the node associated with the target node of the event. |
ScreenX |
Returns the horizontal coordinates of the mouse pointer when an event is triggered. |
ScreenY |
Returns the vertical coordinates of the mouse pointer when an event is triggered. |
ShiftKey |
Returns whether the "SHIFT" Key is pressed when the event is triggered. |