javascript on input change

JavaScript
<!-- 
	You can use any of the following:
	onkeydown, onkeyup or onchange
 -->

<input type="text" onkeydown="keydownFunction()" 
onkeyup="keyupFunction()" onchange="changeFunction()">function updateInput(ish){
    document.getElementById("fieldname").value = ish;
}onchange is only triggered when the control is blurred. Try onkeypress instead.
Source

Also in JavaScript: