About
The mouseup event occurs when the pointing device button is released.
It also occurs just before a click event.
Example
OnMouseUp
event handler content attribute (ie on HTML attribute
<button class="btn btn-info" onmouseup="console.log('Mouse Up!')" >Hold me and release</button>
Mouse Down Event Listener
Example of DOM - Event Listener function with the mouseup event.
- The Javascript
document.querySelector('button').addEventListener("mouseup", event => { console.log('Mouse Up!'); });
- The HTML
<button>Hold me and release</button>