効果は写真に示すとおりです:
![textarea_formエフェクトのjsコードにテキストの値を追加します。](http://files.jb51.net/upload/201005/20100530004338151.gif)
]
<script>
function Addother()
{
if(document.form1.ourl.value==""||document.form1.ourl.value=="http://"){ alert('网址不能为空!'); return ;}
if(document.form1.oname.value==""){ alert('名称不能为空!'); return ;}
document.form1.xiangguanid2.value += document.form1.ourl.value+" | "+document.form1.oname.value+"\r\n";
}
</script>バックグラウンド処理のコードについては、以下の関連記事を参照してください。