Example
Execute JavaScript when releasing the mouse button on the paragraph:
<p onmouseup="mouseUp()">Click the text!</p>
Browser support
IE
Firefox
Chrome
Safari
Opera
All major browsers support the onmouseup attribute.
Definition and Usage
The onmouseup attribute is triggered when the mouse button is released.
Tip: Event order relative to onmouseup event (limited to left/middle mouse button):
onmousedown
onmouseup
onclick
The event sequence of the onmouseup event (limited to the right mouse button):
onmousedown
onmouseup
oncontextmenu
Note: The onmouseup attribute does not apply to the following elements:
,