HTML onmouseup Event Attribute
Example
Run a script when a mouse button is released:
Click the text!
Try it »
Browser support





All major browsers support the onmouseup event attribute
Definition and Usage
The onmouseup attribute is triggered when the user releases a mouse button.
Tip: The event firing order related to the onmouseup event (left/middle mouse button):
- onmousedown
- onmouseup
- onclick
The event firing order related to the onmouseup event (right mouse button):
- onmousedown
- onmouseup
- oncontextmenu
Note: The onmouseup attribute cannot be used with the following elements:
, , ,
HTML Event Attributes