js5.htm SOURCE
More on Object Properties
The javascript in the HEAD of this document.
<SCRIPT>
function calculate(x){
return eval(x)
}
</SCRIPT>
The function calculate gets called by the "onChange" handler in the INPUT
element:
<INPUT TYPE="text" NAME="t1" VALUE="" SIZE="30"
onChange=document.f1.t2.value=calculate(this.value)>