我想做一个

<html>
<head>
<script language="javascript">
var arr1=new Array();
function arr()
{
arr1.push(document.getElementById('b').value);
document.getElementById('a').value=arr1.toString() ;
}
</script>
</head>
<body>
<textarea cols="20" rows="20" name="a" id="a" ></textarea> <br/>
<input type="text" name="b" id="b" />
<input type="button" name="button" value="添加" onclick="arr()"/>
</body>
</html>
------解决方案--------------------
document.getElementById('a').value += "\n" + document.getElementById('b').value
------解决方案--------------------
来晚了,lz神速,恭喜

------解决方案--------------------
别忘了给版主结贴

------解决方案--------------------
见者有分啊……