<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>Untitled Document</title>
<script language="javascript">
function sendvalue()
{
if(document.form1.textfield1.value!="")
document.form2.textfield2.value=document.form1.textfield1.value;
}
</script></head><body>
<form name="form1" method="post" action="">
<input type="text" name="textfield1">
<input type="button" name="Sub1" value="提交" onclick="sendvalue();">
</form>
<form name="form2" method="post" action="">
  <input type="text" name="textfield2" value="">
</form>
<p>&nbsp;</p>
</body>
</html>