Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML onmouseup Event Attribute

HTML onmouseup Event Attribute

HTML Event Attributes HTML Event Attributes

Example

Run a script when a mouse button is released:

Click the text!

Try it »


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

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):

  1. onmousedown
  2. onmouseup
  3. onclick

The event firing order related to the onmouseup event (right mouse button):

  1. onmousedown
  2. onmouseup
  3. oncontextmenu

Note: The onmouseup attribute cannot be used with the following elements: , ,
, , ,