Execute a JavaScript when releasing a mouse button over a paragraph:
The onmouseup attribute fires when a mouse button is released over the element.
Tip: The order of events related to the onmouseup event (for the left/middle mouse button):
The order of events related to the onmouseup event (for the right mouse button):
Event Attribute | |||||
---|---|---|---|---|---|
onmouseup | Yes | Yes | Yes | Yes | Yes |
None.
Value | Description |
---|---|
script | The script to be run on onmouseup |
Supported HTML tags: | All HTML elements, EXCEPT: <base>, <bdo>, <br>, <head>, <html>, <iframe>, <meta>, <param>, <script>, <style>, and <title> |
---|
HTML DOM reference: onmouseup event