onmouseup Event in JavaScript
onmouseup Event in JavaScript
The onmouseup event is used to fire when a mouse button is released over the element. It is applicable to all HTML elements.
Events relative to onmouseup are:-
- onmousedown
- onmouseup
- oncontextmenu
Syntax:-
Its syntax is:- < anyElement onmouseup="my_script" > OR object.onmouseup= function(){my_script} OR object.addEventListener("mouseup", my_script)