JavaScript Tutorial/Document/onkeyup — различия между версиями
Admin (обсуждение | вклад) м (1 версия) |
|
(нет различий)
|
Текущая версия на 08:24, 26 мая 2010
document.onkeyup
The onKeyUp event handler specifies what should happen when any key is pressed and then released when the Document object is in focus.
<html>
<head>
<script language="JavaScript1.2">
<!--
document.onkeyup = myKeyUpHandler;
function myKeyUpHandler() {
alert("A key up event took place within the document!");
}
-->
</script>
</head>
<body>
press a key and release it within this document.
</body>
</html>