一切正常.
<!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=utf-8">
  <title> New Document </title>
 </head> <body>
  <textarea id="txt" style="width:500px;height:300px">1111111</textarea>
  <input type="button" onclick="ck()" value="submit">
  <script type="text/javascript">
  function ck(){
document.getElementById("txt").value =  document.getElementById("txt").value + "\n\naaa";
alert(document.getElementById("txt").value);
  }
  </script> </body>
</html>