The event attribute onmouseup triggered when the mouse button is released in html

黄舟
Release: 2017-11-06 11:32:38
Original
3332 people have browsed it

Example

Execute JavaScript when releasing the mouse button on the paragraph:

Click the text!

Copy after login

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

  1. onmousedown

  2. onmouseup

  3. onclick

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

  1. onmousedown

  2. onmouseup

  3. oncontextmenu

Note: The onmouseup attribute does not apply to the following elements: ;, ,
,,, >