Easy Tutorial
❮ Tag Td Av Event Playing ❯

HTML onmouseup Event Attribute

HTML Event Attributes

Example

Run a script when the mouse button is released:


Browser Support

All major browsers support the onmouseup event attribute.


Definition and Usage

The onmouseup attribute is triggered when the user releases the mouse button.

Tip: The sequence of events related to the onmouseup event (left/middle mouse button):

The sequence of events related to the onmouseup event (right mouse button):

Note: The onmouseup attribute cannot be used with the following elements: <base>, <bdo>, <br>, <head>, <html>, <iframe>, <meta>, <param>, <script>, <style>, or <title>.


Differences Between HTML 4.01 and HTML5

None.


Syntax

Attribute Values

Value Description
script Specifies the script to run when the onmouseup event is triggered.

❮ Tag Td Av Event Playing ❯