Thursday, 1 March 2012

onkeydown event


<html>
<head>
<script type="text/javascript">
function writeMsg()
{
document.forms[0].mySecondInput.value=document.forms[0].myInput.value;
}
</script>
</head>

<body>

<p>onkeydown</p>
<form>
Enter your class
<input type="text" name="myInput" onkeydown=" writeMsg()" size="15">
<input type="text" name="mySecondInput" size="15">
</select>
</form>

</body>
</html>


No comments:

Post a Comment