Event onKeydown

Event onKeydown

<html>
<head>
<script>
function writeMessage()
{
document.forms[0].mySecondInput.value=document.forms[0].myInput.value;
}
</script>
</head>
<body>
<p>The onkeydown event occurs when the a keyboard key is on it’s way DOWN.</p>
<form>
Enter your name:
<input onkeydown=”writeMessage()” size=”20″>
<input name=”mySecondInput” size=”20″>
</select>
</form>
</body>
</html>

OUTPUT:

The onkeydown event occurs when the a keyboard key is on it’s way DOWN.

Enter your name:



DOWNLOAD SOLUTION HERE