JavaScript Reference/Javascript Properties/repeat
Содержание
"repeat" Example
<html>
<body>
<script language="JavaScript">
function keyStatus() {
x = event.repeat;
if (x == true) {
alert("A key has been hold down");
}
}
</script>
<a id="myL"
href="http://www.wbex.ru/"
target="_blank"
onKeyDown="keyStatus();">wbex.ru Network
</a>
</body>
</html>
"repeat" is applied to
+----------------+--------------------------------------------------------------+
| Applied_To |event |
+----------------+--------------------------------------------------------------+
"repeat" Possible Values
Possible Values
true
false.
"repeat" Syntax and Note
Note:
Read-only property.
Is the onKeyDown event fired repeatedly.
Syntax:
window.event.repeat