Event onkeydownup

Event onkeydownup

<html>
<head>
<script>
function color(color)
{ document.forms[0].myInput.style.background=color; }
</script>
</head>
<body>
<form> Write a message:<br />
<input onkeydown=”color(‘red’)”onkeyup=”color(‘blue’)” name=”myInput” size=”20″>
</form>
</body>
</html>

OUTPUT:

Write a message:

DOWNLOAD SOLUTION HERE