I'm trying to make the text field change its color but it doesn't seem to work Here is the code:
<html>
<head>
  <title>   
  This is a title
  </title>
<script type="text/javascript">
    function changeColor()
    {
    alert("bla")
    document.getElemenyById("text1").style.background-color:red;
    }
</script>
</head>
<body>
<form>
<input id="text1" type="text" onkeypress="changeColor()">
</form>
</body>
</html>
- thank you
 
     
     
     
    