Допер)))
<input onchange="chbe()" type="text" id="bebe">
<input type="text" id="bebe2">
<script>
var bebe = document.getElementById("bebe");
var bebe2 = document.getElementById("bebe2");
function chbe(){
bebe2.value = bebe.value;
bebe2.onclick = function(){
alert("slova")
}
}
</script>