Ciao,
prova cosi:

<script>
function copy(){
var a = document.getElementById("A");
var b = document.getElementById("B");

b.value = a.value;
}
</script>

<input type="text" id="A" value="" onkeyup="copy();">
<input type="text" name="B" value="">


Fammi sapere
Ciao