<html>
<head>
<script type="text/javascript">
function writeMsg()
{
document.forms[0].mySecondInput.value=document.forms[0].myInput.value;
}
</script>
</head>
<body>
<p>onkeyup</p>
<form>
Write something<br />
<input type="text" name="myInput" onkeyup=" writeMsg()" size="16">
<input type="text" name="mySecondInput" size="16">
</form>
</body>
</html>
No comments:
Post a Comment