HTML onmouseup Attribute

❮ HTML Attributes


<p onmouseup="myFunction()">Click me!</p>


The onmouseup attribute specifies the script run when a mouse button is released over an element.

Standard Syntax

<element onmouseup="script">

Browser Support


Applies to:

The onmouseup attribute can be used on the following element:

Element Attribute
All HTML elements. onmouseup

Attribute Values

Value Description
script Specifies the script to be run on onmouseup.
❮ HTML Attributes