<BODY>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
oldvalue = "";
function passText(passedvalue) {
if (passedvalue != "") {
var totalvalue = passedvalue + "\n" + oldvalue;
document.displayform.itemsbox.value = totalvalue;
oldvalue = document.displayform.itemsbox.value;
}
}
// End -->
</script>
<form name="selectform">
<select name="downbox" size=1>
<option value="">请选择</option>
<option value="第一项">第一项</option>
<option value="第二项">第二项</option>
<option value="第三项">第三项</option>
<option value="第四项">第四项</option>
<option value="第五项">第五项</option>
<option value="第六项">第六项</option>
</select>
<input type=button value="添加到列表中" onClick="passText(this.form.downbox.options[this.form.downbox.selectedIndex].value);">
</form>
<form name="displayform">
<font face="Arial, Helvetica, Sans Serif" size="3"><b>你可以自己选择一下:</b></font>
<textarea cols="30" rows="5" name="itemsbox"></textarea>
</BODY>
查看效果