<HTML> <HEAD> <TITLE>......</TITLE> <HEAD> <SCRIPT> function func (form) { var intern document.form8.x.value = document.form8.p1.value; document.form8.y.value = 2.0 * document.form8.p1.value * 5.0; intern = document.form8.p1.value; document.form8.z.value = "output: " + intern * 100; } </SCRIPT> <BODY> xxxx<BR> xxxx<BR> xxxx<BR> <FORM NAME="form8"> Typ an input value: <INPUT TYPE="text" NAME="p1" VALUE="a" SIZE="10"> <INPUT TYPE="button" VALUE="calc" ONCLICK="func (this.form)"> <BR> <INPUT TYPE="text" NAME="x" VALUE="a" SIZE="10"> <INPUT TYPE="text" NAME="y" VALUE="aa" SIZE="10"> <INPUT TYPE="text" NAME="z" VALUE="aaa" SIZE="20"> </FORM> xxxx<BR> xxxx<BR> xxxx<BR> </BODY> </HTML>
Enschede, 5 nov. 1999; updated: jan, 28, 2003.