代码如下
-----------------------------------------------------------------------------------------------------------------
<html>
<head>
<title>test</title>
<script language="javascript">
function test(){
var str= 'aaaaa'+ document.form1.tel.value;
document.form1.tel2.value = str;
}
</script>
</head>
<body>
<form name="form1">
<input type="text" name="tel" onKeyUp="test()"/>
<input type="text" name="tel2"/>
</form>
</body>
</html>