Easy Tutorial
❮ Prop Date Type Prop Datetime Required ❯

onmouseup Event

Event Object

Example

Execute JavaScript code when the user releases the mouse button:


Definition and Usage

The onmouseup event occurs when the mouse button is released.

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

The sequence of events associated with the onmouseup event (right mouse button):

Syntax

In HTML:

In JavaScript:

Parameter Description
SomeJavaScriptCode Required. The JavaScript to be executed when the event occurs.

Browser Support

All major browsers support the onmouseup event.


Supported HTML Tags:

The onmouseup attribute can be used with all HTML elements except: <base>, <bdo>, <br>, <head>, <html>, <iframe>, <meta>, <param>, <script>, <style>, and <title>.

❮ Prop Date Type Prop Datetime Required ❯