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