|
| JAVASCRIPT ONMOUSEUP EVENT
The javascript onmouseup event handler is used to trigger a script or action when a mouse button is released on an element. The onmouseup event calls the action from most elements.
Example:
<a href="#" onmouseup="alert('Jeepers! I\'ve been clicked');">Click this</a>
The above example will output Jeepers! I 've been clicked when you release the mouse button on the link.
The onmouseup event can also call a function as follows:
<head>
<script type="text/javascript">
function clickme()
{
alert('Jeepers! I\'ve been clicked');
}
</script>
</head>
<body>
<a href="#" onmouseup="clickme();">Click this</a>
DEMO:
Release your mouse button over the link below to see the effect:
Click this
See also:
|
|