The onmouseup
attribute event is triggered
when a mouse button is released.
None.
<element onmouseup="script or Javascript function name">
All HTML elements, EXCEPT:
<base>, <bdo>, <br>, <head>, <html>, <iframe>, <meta>, <param>, <script>, <style>, <title>
onmouseup |
Yes | Yes | Yes | Yes | Yes |
<!DOCTYPE html>
<html>
<body>
<!--from w w w. j a v a2s. co m-->
<p id="p1" onmouseover="onmouseOver()" onmouseup="mouseUp()">
Click the text!
</p>
<script>
function onmouseOver() {
console.log("onmouseOver");
}
function mouseUp() {
console.log("up");
}
</script>
</body>
</html>